diff options
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 1fa35b293..966131af5 100644 --- a/miscutils/nmeter.c +++ b/miscutils/nmeter.c | |||
@@ -20,7 +20,7 @@ typedef unsigned long long ullong; | |||
20 | enum { proc_file_size = 4096 }; | 20 | enum { proc_file_size = 4096 }; |
21 | 21 | ||
22 | typedef struct proc_file { | 22 | typedef 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; | |||
38 | static int delta = 1000000; | 38 | static int delta = 1000000; |
39 | static int deltanz = 1000000; | 39 | static int deltanz = 1000000; |
40 | static int need_seconds = 0; | 40 | static int need_seconds = 0; |
41 | static char *final_str = "\n"; | 41 | static 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 |