[wplug] C compiling question

James O'Kane jo2y at midnightlinux.com
Tue Oct 1 00:03:05 EDT 2002


Did something like this ever work as expected with any version of gcc? I
found this code in mod_throttle, an apache module to add quotas to remote
users. I'm surprised that it is being distributed because at least for me,
it doesn't do what I would want. I've changed things to strcmp(), so I'm
all set in terms of getting it to work, but I'm curious if gcc ever
compiled this so it would work?


static const char true[] = "true";
char *foo = NULL;

foo = setfoo();

if(foo == true){
// do stuff if foo is true
}




More information about the wplug mailing list