Use standard bool types.
I'm using `stdbool.h` for the few remaining C files. That will have to change, soon.
This commit is contained in:
@ -702,7 +702,7 @@ static int File_send_file(ClientInfo *client)
|
||||
const char *unknown_type = "application/octet-stream";
|
||||
char buf[LBUF], *d_cmd, *name;
|
||||
int st, st2, namelen;
|
||||
bool_t gzipped = FALSE;
|
||||
bool gzipped = false;
|
||||
|
||||
if (client->state == st_start) {
|
||||
/* Send DPI command */
|
||||
@ -719,7 +719,7 @@ static int File_send_file(ClientInfo *client)
|
||||
namelen = strlen(client->filename);
|
||||
if (namelen > 3 &&
|
||||
!dStrAsciiCasecmp(client->filename + namelen - 3, ".gz")) {
|
||||
gzipped = TRUE;
|
||||
gzipped = true;
|
||||
namelen -= 3;
|
||||
}
|
||||
/* Content-Type info is based on filename extension (with ".gz" removed).
|
||||
|
||||
Reference in New Issue
Block a user