]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(checkfp): Use IF_LINT macro instead of #ifdef lint...
authorJim Meyering <jim@meyering.net>
Sun, 22 Aug 1999 09:50:05 +0000 (09:50 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 22 Aug 1999 09:50:05 +0000 (09:50 +0000)
(mergefps): Likewise.

src/sort.c

index 8f015b6fd757988e144c10c047097d04a6acd63e..83cba40ef62c1c845a49c6c0b108bb5b431a76ec 100644 (file)
@@ -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)
     {