diff options
author | Denis Vlasenko | 2007-01-29 23:43:18 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-01-29 23:43:18 +0000 |
commit | 89ef65f02463b27313ff0eba806aa6e4aec10716 (patch) | |
tree | 70eab3e72843b1418ef3d88437c1f1a19169bda8 /miscutils/nmeter.c | |
parent | ab2aea44479fd6f519bccd651a37f30e792b7593 (diff) | |
download | busybox-89ef65f02463b27313ff0eba806aa6e4aec10716.zip busybox-89ef65f02463b27313ff0eba806aa6e4aec10716.tar.gz |
preparatory patch for -Wwrite-strings #5
Diffstat (limited to 'miscutils/nmeter.c')
-rw-r--r-- | miscutils/nmeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/nmeter.c b/miscutils/nmeter.c index 1fa35b2..966131a 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 |