aboutsummaryrefslogtreecommitdiff
path: root/miscutils/nmeter.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-29 23:43:18 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-29 23:43:18 +0000
commit89ef65f02463b27313ff0eba806aa6e4aec10716 (patch)
tree70eab3e72843b1418ef3d88437c1f1a19169bda8 /miscutils/nmeter.c
parentab2aea44479fd6f519bccd651a37f30e792b7593 (diff)
downloadbusybox-w32-89ef65f02463b27313ff0eba806aa6e4aec10716.tar.gz
busybox-w32-89ef65f02463b27313ff0eba806aa6e4aec10716.tar.bz2
busybox-w32-89ef65f02463b27313ff0eba806aa6e4aec10716.zip
preparatory patch for -Wwrite-strings #5
Diffstat (limited to 'miscutils/nmeter.c')
-rw-r--r--miscutils/nmeter.c4
1 files changed, 2 insertions, 2 deletions
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;
20enum { proc_file_size = 4096 }; 20enum { proc_file_size = 4096 };
21 21
22typedef struct proc_file { 22typedef struct proc_file {
23 char *name; 23 const char *name;
24 int gen; 24 int gen;
25 char *file; 25 char *file;
26} proc_file; 26} proc_file;
@@ -38,7 +38,7 @@ static struct timeval tv;
38static int delta = 1000000; 38static int delta = 1000000;
39static int deltanz = 1000000; 39static int deltanz = 1000000;
40static int need_seconds = 0; 40static int need_seconds = 0;
41static char *final_str = "\n"; 41static const char *final_str = "\n";
42 42
43// We depend on this being a char[], not char* - we take sizeof() of it 43// We depend on this being a char[], not char* - we take sizeof() of it
44#define outbuf bb_common_bufsiz1 44#define outbuf bb_common_bufsiz1