mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-05 08:10:15 +02:00
maint: head: prefer static initialization
* src/head.c (line_end): Initialize variable. (main): Remove unnecessary initializations.
This commit is contained in:
+1
-7
@@ -58,7 +58,7 @@ static bool presume_input_pipe;
|
||||
static bool print_headers;
|
||||
|
||||
/* Character to split lines by. */
|
||||
static char line_end;
|
||||
static char line_end = '\n';
|
||||
|
||||
/* When to print the filename banners. */
|
||||
enum header_mode
|
||||
@@ -943,12 +943,6 @@ main (int argc, char **argv)
|
||||
|
||||
atexit (close_stdout);
|
||||
|
||||
have_read_stdin = false;
|
||||
|
||||
print_headers = false;
|
||||
|
||||
line_end = '\n';
|
||||
|
||||
if (1 < argc && argv[1][0] == '-' && c_isdigit (argv[1][1]))
|
||||
{
|
||||
char *a = argv[1];
|
||||
|
||||
Reference in New Issue
Block a user