summaryrefslogtreecommitdiff
path: root/dmesg.c
diff options
context:
space:
mode:
authorPavel Roskin2000-07-17 16:17:19 +0000
committerPavel Roskin2000-07-17 16:17:19 +0000
commit47d4926244f6a444f812675f4ecff401dba5f8f7 (patch)
tree3fa51908f6eb9657a2e9696c2fe9c71001129f7e /dmesg.c
parentbf181b9338152759fd56c8009e9a962a84808e7c (diff)
downloadbusybox-47d4926244f6a444f812675f4ecff401dba5f8f7.zip
busybox-47d4926244f6a444f812675f4ecff401dba5f8f7.tar.gz
The result of getopt() is "int" and should be treated as such
Diffstat (limited to 'dmesg.c')
-rw-r--r--dmesg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dmesg.c b/dmesg.c
index a8c61c7..99d053a 100644
--- a/dmesg.c
+++ b/dmesg.c
@@ -34,7 +34,8 @@ static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
int dmesg_main(int argc, char **argv)
{
- char *buf, c;
+ char *buf;
+ int c;
int bufsize = 8196;
int i;
int n;