forked from mirrors/tftp-hpa-google
Clean up some warnings when compiling without remap support.
This commit is contained in:
parent
e3570e4d31
commit
9b5b8c5640
1 changed files with 7 additions and 1 deletions
|
@ -130,7 +130,9 @@ int cancreate = 0;
|
|||
int verbosity = 0;
|
||||
|
||||
struct formats;
|
||||
#ifdef WITH_REGEX
|
||||
static struct rule *rewrite_rules = NULL;
|
||||
#endif
|
||||
|
||||
int tftp(struct tftphdr *, int);
|
||||
void nak(int);
|
||||
|
@ -209,8 +211,10 @@ main(int argc, char **argv)
|
|||
int setrv;
|
||||
int timeout = 900; /* Default timeout */
|
||||
char *user = "nobody"; /* Default user */
|
||||
#ifdef WITH_REGEX
|
||||
char *rewrite_file = NULL;
|
||||
|
||||
#endif
|
||||
|
||||
__progname = basename(argv[0]);
|
||||
|
||||
openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON);
|
||||
|
@ -791,6 +795,8 @@ rewrite_access(char *filename, int mode)
|
|||
char *newname = rewrite_string(filename, rewrite_rules, mode != RRQ);
|
||||
filename = newname;
|
||||
}
|
||||
#else
|
||||
(void)mode; /* Suppress unused warning */
|
||||
#endif
|
||||
return filename;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue