summaryrefslogtreecommitdiff
path: root/get_load.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-12-20 17:55:39 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-12-20 17:55:39 -0800
commit6ec57ead120a3d42afcb76da012109dd713f12d9 (patch)
tree0f2413d3f9b5888fcff42220b20c4f03a6ec2558 /get_load.c
parenta53164911c182e73a03eb2eceaa5dfa81f4f98c3 (diff)
Mark string arguments to xload_error as const char * for gcc -Wwrite-strings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'get_load.c')
-rw-r--r--get_load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/get_load.c b/get_load.c
index 880e9b1..77b6779 100644
--- a/get_load.c
+++ b/get_load.c
@@ -201,7 +201,7 @@ void GetLoadPoint(
extern long lseek();
#endif
-void xload_error(char *, char *);
+static void xload_error(const char *, const char *);
#if defined(SYSV) && defined(i386)
@@ -1014,7 +1014,7 @@ void GetLoadPoint( w, closure, call_data )
#endif /* KVM_ROUTINES else */
#endif /* SYSV && i386 else */
-void xload_error(char *str1, char *str2)
+static void xload_error(const char *str1, const char *str2)
{
(void) fprintf(stderr,"xload: %s %s\n", str1, str2);
#ifdef __bsdi__