From 89ef65f02463b27313ff0eba806aa6e4aec10716 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 29 Jan 2007 23:43:18 +0000 Subject: preparatory patch for -Wwrite-strings #5 --- miscutils/nmeter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'miscutils/nmeter.c') diff --git a/miscutils/nmeter.c b/miscutils/nmeter.c index 1fa35b293..966131af5 100644 --- a/miscutils/nmeter.c +++ b/miscutils/nmeter.c @@ -20,7 +20,7 @@ typedef unsigned long long ullong; enum { proc_file_size = 4096 }; typedef struct proc_file { - char *name; + const char *name; int gen; char *file; } proc_file; @@ -38,7 +38,7 @@ static struct timeval tv; static int delta = 1000000; static int deltanz = 1000000; static int need_seconds = 0; -static char *final_str = "\n"; +static const char *final_str = "\n"; // We depend on this being a char[], not char* - we take sizeof() of it #define outbuf bb_common_bufsiz1 -- cgit v1.2.3