Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sushi len is size_t and not int.



details:   https://anonhg.NetBSD.org/src/rev/0e1472f3cc95
branches:  trunk
changeset: 501738:0e1472f3cc95
user:      veego <veego%NetBSD.org@localhost>
date:      Sat Jan 06 15:04:05 2001 +0000

description:
len is size_t and not int.
Fixes compile problem on alpha.

diffstat:

 usr.sbin/sushi/scandir.c  |   4 ++--
 usr.sbin/sushi/scanform.c |  10 ++++++----
 2 files changed, 8 insertions(+), 6 deletions(-)

diffs (56 lines):

diff -r f890ea45ecc3 -r 0e1472f3cc95 usr.sbin/sushi/scandir.c
--- a/usr.sbin/sushi/scandir.c  Sat Jan 06 14:55:49 2001 +0000
+++ b/usr.sbin/sushi/scandir.c  Sat Jan 06 15:04:05 2001 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: scandir.c,v 1.1 2001/01/05 01:28:38 garbled Exp $       */
+/*      $NetBSD: scandir.c,v 1.2 2001/01/06 15:04:05 veego Exp $       */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
        char path[PATH_MAX+30];
        int lcnt;
        char *p, *t;
-       int len;
+       size_t len;
 
        if (lang_id == NULL)
                snprintf(path, sizeof(path), "%s/%s", basedir, INDEXFILE);
diff -r f890ea45ecc3 -r 0e1472f3cc95 usr.sbin/sushi/scanform.c
--- a/usr.sbin/sushi/scanform.c Sat Jan 06 14:55:49 2001 +0000
+++ b/usr.sbin/sushi/scanform.c Sat Jan 06 15:04:05 2001 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: scanform.c,v 1.1 2001/01/05 01:28:38 garbled Exp $       */
+/*      $NetBSD: scanform.c,v 1.2 2001/01/06 15:04:05 veego Exp $       */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
        FILE *filep;
        int lcnt;
        char *p, *t;
-       int len;
+       size_t len;
 
        if((filep = fopen(path, "r"))) {
                for (lcnt = 1; (p = fgetln(filep, &len)) != NULL; ++lcnt) {
@@ -908,7 +908,8 @@
        char *p, *q, *comm, *test;
        FILE *file;
        char buf[PATH_MAX+30];
-       int i, len, cur;
+       size_t len;
+       int i, cur;
 
        q = strdup(ftp->data);
        comm = malloc(sizeof(char) * strlen(q));
@@ -966,7 +967,8 @@
        char *p, *q, *test, *comm;
        FILE *file;
        char buf[PATH_MAX+30];
-       int len, cur;
+       size_t len;
+       int cur;
 
        q = strdup(ftp->data);
        comm = malloc(sizeof(char) * strlen(q));



Home | Main Index | Thread Index | Old Index