declare constant function parameters const (as well as constant function return values)
This commit is contained in:
@@ -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__ );
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user