diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-03 05:58:49 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-03 05:58:49 +0000 |
commit | 846cb63700c15feb56235bd1bd833e5927ae5463 (patch) | |
tree | b57f7c60b2b6841fb5249615cb7408e9b352ee98 /src/csplit.c | |
parent | ef9d1f67b2d51a2e598ca9db8bb85c93a5299288 (diff) | |
download | coreutils-846cb63700c15feb56235bd1bd833e5927ae5463.tar.xz |
(struct line): Use size_t for sizes.
(main): Remove unnecessary cast.
Diffstat (limited to 'src/csplit.c')
-rw-r--r-- | src/csplit.c | 8 |
1 files changed, 4 insertions, 4 deletions
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': |