[PATCH 1/2] seq: match f's type with strlen() result type
Guilherme Maciel Ferreira
guilherme.maciel.ferreira at gmail.com
Sat Aug 2 03:12:24 UTC 2014
The variable f compares and receives only unsigned/size_t values.
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira at gmail.com>
---
coreutils/seq.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/coreutils/seq.c b/coreutils/seq.c
index 8986192..059c500 100644
--- a/coreutils/seq.c
+++ b/coreutils/seq.c
@@ -70,7 +70,7 @@ int seq_main(int argc, char **argv)
while (1) {
char *dot = strchrnul(*argv, '.');
int w = (dot - *argv);
- int f = strlen(dot);
+ size_t f = strlen(dot);
if (width < w)
width = w;
argv++;
--
1.7.0.4
More information about the busybox
mailing list