From 846cb63700c15feb56235bd1bd833e5927ae5463 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 3 Aug 2004 05:58:49 +0000 Subject: (struct line): Use size_t for sizes. (main): Remove unnecessary cast. --- src/csplit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/csplit.c') diff --git a/src/csplit.c b/src/csplit.c index c26486f08..c61dc7ef9 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': -- cgit v1.2.3-54-g00ecf