diff options
author | Jim Meyering <jim@meyering.net> | 1992-11-08 20:19:58 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1992-11-08 20:19:58 +0000 |
commit | 925487607cfed5d4e68ffa375bc17941934dba07 (patch) | |
tree | d9333d9e8759a18b2ea1b3550319491cce519cb0 /src/fold.c | |
parent | 40d0a06450310c7abc8b393f130fa76de682313d (diff) | |
download | coreutils-925487607cfed5d4e68ffa375bc17941934dba07.tar.xz |
Declared lots of external functions and variables static.
Made several statically-initialized arrays `const'
Diffstat (limited to 'src/fold.c')
-rw-r--r-- | src/fold.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/fold.c b/src/fold.c index d5d4ae3fe..a2fb42a0c 100644 --- a/src/fold.c +++ b/src/fold.c @@ -28,23 +28,24 @@ #include "system.h" char *xrealloc (); -int adjust_column (); -int fold_file (); void error (); +static int adjust_column (); +static int fold_file (); + /* If nonzero, try to break on whitespace. */ -int break_spaces; +static int break_spaces; /* If nonzero, count bytes, not column positions. */ -int count_bytes; +static int count_bytes; /* If nonzero, at least one of the files we read was standard input. */ -int have_read_stdin; +static int have_read_stdin; /* The name this program was run with. */ char *program_name; -struct option longopts[] = +static struct option const longopts[] = { {"bytes", 0, NULL, 'b'}, {"spaces", 0, NULL, 's'}, @@ -110,7 +111,7 @@ Usage: %s [-bs] [-w width] [--bytes] [--spaces] [--width=width] [file...]\n", to stdout, with maximum line length WIDTH. Return 0 if successful, 1 if an error occurs. */ -int +static int fold_file (filename, width) char *filename; int width; @@ -225,7 +226,7 @@ fold_file (filename, width) printing C will move the cursor to. The first column is 0. */ -int +static int adjust_column (column, c) int column; char c; |