From: Paul Eggert Date: Tue, 3 Aug 2004 05:58:49 +0000 (+0000) Subject: (struct line): Use size_t for sizes. X-Git-Tag: v5.3.0~900 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=846cb63700c15feb56235bd1bd833e5927ae5463;p=thirdparty%2Fcoreutils.git (struct line): Use size_t for sizes. (main): Remove unnecessary cast. --- diff --git a/src/csplit.c b/src/csplit.c index c26486f08d..c61dc7ef91 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -91,9 +91,9 @@ struct cstring These structures are linked together if needed. */ struct line { - unsigned int used; /* Number of offsets used in this struct. */ - unsigned int insert_index; /* Next offset to use when inserting line. */ - unsigned int retrieve_index; /* Next index to use when retrieving line. */ + size_t used; /* Number of offsets used in this struct. */ + size_t insert_index; /* Next offset to use when inserting line. */ + size_t retrieve_index; /* Next index to use when retrieving line. */ struct cstring starts[CTRL_SIZE]; /* Lines in the data area. */ struct line *next; /* Next in linked list. */ }; @@ -1353,7 +1353,7 @@ main (int argc, char **argv) if (xstrtoul (optarg, NULL, 10, &val, "") != LONGINT_OK || val > INT_MAX) error (EXIT_FAILURE, 0, _("%s: invalid number"), optarg); - digits = (int) val; + digits = val; break; case 's':