diff options
author | Jim Meyering <jim@meyering.net> | 1999-08-22 09:50:05 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-08-22 09:50:05 +0000 |
commit | 005c36b1787bb378b7c51cd8f642fa873ed3978b (patch) | |
tree | 87178d5e0c90eb1e5ceb6313e11d616365c69f4c /src/sort.c | |
parent | 0e3b9af25b493ae3d2b08576d231b9173c15d4ab (diff) | |
download | coreutils-005c36b1787bb378b7c51cd8f642fa873ed3978b.tar.xz |
(checkfp): Use IF_LINT macro instead of #ifdef lint...
(mergefps): Likewise.
Diffstat (limited to 'src/sort.c')
-rw-r--r-- | src/sort.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/sort.c b/src/sort.c index 8f015b6fd..83cba40ef 100644 --- a/src/sort.c +++ b/src/sort.c @@ -1371,13 +1371,9 @@ checkfp (FILE *fp, const char *file_name) int cc; /* Character count. */ int alloc; int line_number = 1; - struct line *disorder_line; + struct line *disorder_line IF_LINT (= NULL); int disorder_line_number = 0; -#ifdef lint /* Suppress `used before initialized' warning. */ - disorder_line = NULL; -#endif - initbuf (&buf, mergealloc); initlines (&lines, mergealloc / linelength + 1, LINEALLOC / ((NMERGE + NMERGE) * sizeof (struct line))); @@ -1470,7 +1466,7 @@ mergefps (FILE **fps, register int nfps, FILE *ofp, const char *output_file) struct lines lines[NMERGE]; /* Line tables for each buffer. */ struct line saved; /* Saved line for unique check. */ int savedflag = 0; /* True if there is a saved line. */ - int savealloc; /* Size allocated for the saved line. */ + int savealloc IF_LINT (= 0); /* Size allocated for the saved line. */ int cur[NMERGE]; /* Current line in each line table. */ int ord[NMERGE]; /* Table representing a permutation of fps, such that lines[ord[0]].lines[cur[ord[0]]] @@ -1478,10 +1474,6 @@ mergefps (FILE **fps, register int nfps, FILE *ofp, const char *output_file) output. */ register int i, j, t; -#ifdef lint /* Suppress `used before initialized' warning. */ - savealloc = 0; -#endif - /* Allocate space for a saved line if necessary. */ if (unique) { |