From: Steve Dickson Date: Mon, 19 Jul 2010 16:39:52 +0000 (-0400) Subject: Removed warnings from conffile.c X-Git-Tag: nfs-utils-1-2-3-rc5~18 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e10000740fc4c323dbc8d501d7c0caeae12c19b5;p=nfs-utils.git 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 --- 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) {