diff options
author | Steve Dickson <steved@redhat.com> | 2010-07-19 12:39:52 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2010-08-09 09:57:02 -0400 |
commit | e10000740fc4c323dbc8d501d7c0caeae12c19b5 (patch) | |
tree | 0674b47accf43d5e6e746a97df8b647f0134b615 | |
parent | 8810c9dd5b66a097a235e6eabd399739a44df63e (diff) | |
download | nfs-utils-e10000740fc4c323dbc8d501d7c0caeae12c19b5.tar.gz nfs-utils-e10000740fc4c323dbc8d501d7c0caeae12c19b5.tar.xz nfs-utils-e10000740fc4c323dbc8d501d7c0caeae12c19b5.zip |
Removed warnings from conffile.c
conffile.c: In function 'conf_parse_line':
conffile.c:301: warning: comparison between signed and unsigned integer expressions
conffile.c: In function 'conf_load_defaults':
conffile.c:356: warning: unused parameter 'tr'
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | support/nfs/conffile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/support/nfs/conffile.c b/support/nfs/conffile.c index b277c2a..24640f4 100644 --- a/support/nfs/conffile.c +++ b/support/nfs/conffile.c @@ -49,7 +49,7 @@ #include "conffile.h" #include "xlog.h" -static void conf_load_defaults (int); +static void conf_load_defaults(void); static int conf_set(int , char *, char *, char *, char *, int , int ); @@ -212,7 +212,7 @@ conf_parse_line(int trans, char *line, size_t sz) { char *val, *ptr; size_t i; - int j; + size_t j; static char *section = 0; static char *arg = 0; static int ln = 0; @@ -353,7 +353,7 @@ conf_parse(int trans, char *buf, size_t sz) } static void -conf_load_defaults(int tr) +conf_load_defaults(void) { /* No defaults */ return; @@ -412,7 +412,7 @@ conf_reinit(void) trans = conf_begin(); /* Load default configuration values. */ - conf_load_defaults(trans); + conf_load_defaults(); /* Free potential existing configuration. */ if (conf_addr) { |