Displaying 2 results from an estimated 2 matches for "4d671ca".
2016 May 05
1
[PATCH] tools: improve reporting for option errors (RHBZ#1316041)
...it/edit.c | 5 ++++-
format/format.c | 12 ++++++++++--
fuse/guestmount.c | 13 ++++++++++---
inspector/inspector.c | 12 ++++++++++--
rescue/rescue.c | 12 ++++++++++--
10 files changed, 87 insertions(+), 22 deletions(-)
diff --git a/cat/cat.c b/cat/cat.c
index 0370fbd..4d671ca 100644
--- a/cat/cat.c
+++ b/cat/cat.c
@@ -224,8 +224,11 @@ main (int argc, char *argv[])
CHECK_OPTION_format_consumed;
/* User must have specified some drives. */
- if (drvs == NULL)
+ if (drvs == NULL) {
+ fprintf (stderr, _("%s: error: you must specify at least one -a or -d opt...
2016 Jul 22
1
[PATCH] static const char *str -> static const char str
...PTION = CHAR_MAX + 1 };
- static const char *options = "V";
+ static const char options[] = "V";
static const struct option long_options[] = {
{ "help", 0, 0, HELP_OPTION },
{ "compat-1.24.0", 0, 0, 0 },
diff --git a/cat/cat.c b/cat/cat.c
index 4d671ca..9039f7f 100644
--- a/cat/cat.c
+++ b/cat/cat.c
@@ -88,7 +88,7 @@ main (int argc, char *argv[])
enum { HELP_OPTION = CHAR_MAX + 1 };
- static const char *options = "a:c:d:m:vVx";
+ static const char options[] = "a:c:d:m:vVx";
static const struct option long_options[]...