Removed trailing \n from error_msg{,_and_die} messages.
diff --git a/util-linux/getopt.c b/util-linux/getopt.c
index ff55a3e..6252631 100644
--- a/util-linux/getopt.c
+++ b/util-linux/getopt.c
@@ -258,7 +258,7 @@
arg_opt=required_argument;
}
if (strlen(tokptr) == 0)
- error_msg("empty long option after -l or --long argument\n");
+ error_msg("empty long option after -l or --long argument");
}
add_longopt(tokptr,arg_opt);
}
@@ -277,7 +277,7 @@
else if (!strcmp(new_shell,"csh"))
shell=TCSH;
else
- error_msg("unknown shell after -s or --shell argument\n");
+ error_msg("unknown shell after -s or --shell argument");
}
@@ -326,7 +326,7 @@
printf(" --\n");
exit(0);
} else
- error_msg_and_die("missing optstring argument\n");
+ error_msg_and_die("missing optstring argument");
}
if (argv[1][0] != '-' || compatible) {
@@ -377,7 +377,7 @@
if (!optstr) {
if (optind >= argc)
- error_msg_and_die("missing optstring argument\n");
+ error_msg_and_die("missing optstring argument");
else {
optstr=xmalloc(strlen(argv[optind])+1);
strcpy(optstr,argv[optind]);