declare constant function parameters const (as well as constant function return values)

This commit is contained in:
marschap
2006-09-12 16:23:24 +00:00
parent f34c246200
commit cc2c84a7b8
21 changed files with 78 additions and 68 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ static struct option const long_options[] =
static int
iface_process_configfile()
{
char *unit;
const char *unit;
debug( RPT_DEBUG, "%s()", __FUNCTION__ );
+11
View File
@@ -15,6 +15,17 @@
#include <sys/statvfs.h>
#include <errno.h>
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
#ifdef USE_GETLOADAVG
# include <sys/loadavg.h>
#endif
+1 -1
View File
@@ -330,7 +330,7 @@ static int
process_configfile(char *configfile)
{
int k;
char *tmp;
const char *tmp;
debug(RPT_DEBUG, "%s(%s)", __FUNCTION__, (configfile) ? configfile : "<null>");