summaryrefslogtreecommitdiff
path: root/src/base64.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-02-27 10:41:03 +0000
committerJim Meyering <jim@meyering.net>2006-02-27 10:41:03 +0000
commitee5fbeafea9947a4f81daac8cce572d9ca82d8eb (patch)
tree9791fd9ecf22e7ad834e028d786b6d6b5148d84e /src/base64.c
parentcec76053e7f1e8ae2c3e88dfb1ee0edac49f5a05 (diff)
downloadcoreutils-ee5fbeafea9947a4f81daac8cce572d9ca82d8eb.tar.xz
Don't include .h files already included by system.h:
<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.
Diffstat (limited to 'src/base64.c')
-rw-r--r--src/base64.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/base64.c b/src/base64.c
index ce36b1669..10c672c9f 100644
--- a/src/base64.c
+++ b/src/base64.c
@@ -21,20 +21,16 @@
/* 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)
{