summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author"Vladimir N. Oleynik"2006-01-30 14:02:06 +0000
committer"Vladimir N. Oleynik"2006-01-30 14:02:06 +0000
commit2d604581ef7bf34bd723422402cd38d9d6c71162 (patch)
tree1c98a6350987ef7d07271f220f824715a693c214
parent51bfa54e461b3e0f0bf44f125fc90597f98044ca (diff)
downloadbusybox-2d604581ef7bf34bd723422402cd38d9d6c71162.zip
busybox-2d604581ef7bf34bd723422402cd38d9d6c71162.tar.gz
removed warning "comparison between signed and unsigned".
-rw-r--r--procps/ps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/procps/ps.c b/procps/ps.c
index b423b06..9dd0e03 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -111,14 +111,14 @@ extern int ps_main(int argc, char **argv)
if(namecmd && namecmd[0]) {
if(i < 0)
i = 0;
- if(strlen(namecmd) > i)
+ if(strlen(namecmd) > (size_t)i)
namecmd[i] = 0;
printf("%s\n", namecmd);
} else {
namecmd = p->short_cmd;
if(i < 2)
i = 2;
- if(strlen(namecmd) > (i-2))
+ if(strlen(namecmd) > ((size_t)i-2))
namecmd[i-2] = 0;
printf("[%s]\n", namecmd);
}