2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 22:35:25 +00:00

Get a clean compile with all known gcc warnings.

This commit is contained in:
Ted Lemon
1999-10-07 06:36:35 +00:00
parent 77a5f87162
commit b1b7b521fe
61 changed files with 1769 additions and 1398 deletions

View File

@@ -50,8 +50,8 @@ struct buffer {
/* A string of data bytes, possibly accompanied by a larger buffer. */
struct data_string {
struct buffer *buffer;
unsigned char *data;
int len; /* Does not include NUL terminator, if any. */
const unsigned char *data;
unsigned len; /* Does not include NUL terminator, if any. */
int terminated;
};
@@ -169,16 +169,16 @@ struct decoded_option_state; /* forward */
struct lease; /* forward */
struct universe {
char *name;
const char *name;
struct option_cache *(*lookup_func) PROTO ((struct universe *,
struct option_state *,
int));
unsigned));
void (*save_func) PROTO ((struct universe *, struct option_state *,
struct option_cache *));
int (*get_func) PROTO ((struct data_string *, struct universe *,
struct packet *, struct lease *,
struct option_state *, struct option_state *,
struct option_state *, int));
struct option_state *, unsigned));
void (*set_func) PROTO ((struct universe *, struct option_state *,
struct option_cache *, enum statement_op));
@@ -198,10 +198,10 @@ struct universe {
};
struct option {
char *name;
char *format;
const char *name;
const char *format;
struct universe *universe;
int code;
unsigned code;
};
enum expression_context {