Permalink
Browse files

rename internal "unmodified" variable to "nochange", to avoid confusi…

…on with

'unmodified' from the perspective of http caching


git-svn-id: http://svn.kfish.org/fastphoto/trunk@147 9c49b5d1-7df3-0310-bce2-b7278e68f44c
  • Loading branch information...
1 parent e777a35 commit d94cfb33032d6c637e6e0b3a4b0b2142b8316633 conrad committed Feb 17, 2006
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/cgi.c
  2. +1 −1 src/fastphoto.h
  3. +1 −1 src/main.c
View
@@ -94,7 +94,7 @@ cgi_init (fastphoto_t * params)
params->quality) {
cache_init (params, path_info);
} else {
- params->unmodified = 1;
+ params->nochange = 1;
}
return 1;
@@ -124,7 +124,7 @@ cgi_send (fastphoto_t * params)
{
header_last_modified (params->in.mtime);
- if (params->unmodified) {
+ if (params->nochange) {
cgi_send_photo (&params->in);
} else if (params->out.name) {
cgi_send_photo (&params->out);
View
@@ -25,7 +25,7 @@ struct fastphoto_s {
unsigned char * data;
int data_size;
- int unmodified;
+ int nochange;
int cached;
int info;
View
@@ -165,7 +165,7 @@ main (int argc, char * argv[])
}
err = 0;
- if (!(params.unmodified || params.cached)) {
+ if (!(params.nochange || params.cached)) {
err = resize (&params);
}

0 comments on commit d94cfb3

Please sign in to comment.