]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't include .h files already included by system.h:
authorJim Meyering <jim@meyering.net>
Mon, 27 Feb 2006 10:41:03 +0000 (10:41 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 27 Feb 2006 10:41:03 +0000 (10:41 +0000)
<string.h>, <stdlib.h>, <stdbool.h>, <limits.h>, <errno.h>.
Include "system.h" before the other lib/*.h header files.
Include <sys/types.h> before "system.h".
(wrap_write): Remove declaration of unused local, initial_column.

src/base64.c

index ce36b16691c789ebdff92210233217cc776085df..10c672c9fdb4fb5a75372e199de14d0c12788831 100644 (file)
 /* Written by Simon Josefsson <simon@josefsson.org>.  */
 
 #include <config.h>
-#include <getopt.h>
 
-#include <string.h>
 #include <stdio.h>
-#include <stdlib.h>
-#include <stdbool.h>
-#include <limits.h>
-#include <errno.h>
+#include <getopt.h>
+#include <sys/types.h>
 
+#include "system.h"
 #include "error.h"
 #include "xstrtol.h"
 #include "quote.h"
 #include "quotearg.h"
-#include "system.h"
 
 #include "base64.h"
 
@@ -111,7 +107,6 @@ wrap_write (const char *buffer, size_t len,
            size_t wrap_column, size_t * current_column, FILE *out)
 {
   size_t written;
-  size_t initial_column = *current_column;
 
   if (wrap_column == 0)
     {