From: Craig Small Date: Thu, 31 May 2007 12:36:49 +0000 (+0000) Subject: peekfd intl and args fixes X-Git-Tag: v22.11~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d97ed9bb66e5c28eed52bfd3be3911a7915121ff;p=psmisc peekfd intl and args fixes --- diff --git a/ChangeLog b/ChangeLog index 3fb4788..c2f7b8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,12 +1,13 @@ Changes in ?? ============= +2007-05-31 Craig Small + * Updated Polish and Italian translations + * Patch for peekfd from Benno Schulenberg + 2007-04-30 Craig Small * Fixed up NLS for fuser, patch from Benno Schulenberg * killall asks for Signal (procname) if not SIGTERM -2007-05-31 Craig Small - * Updated Polish and Italian translations - Changes in 22.5 =============== 2007-04-18 Craig Small diff --git a/src/peekfd.c b/src/peekfd.c index 361042e..e22b7ab 100644 --- a/src/peekfd.c +++ b/src/peekfd.c @@ -106,11 +106,6 @@ int main(int argc, char **argv) {"version", 0, NULL, 'V'}, }; - if (argc < 2) { - usage(); - return 1; - } - /* Setup the i18n */ #ifdef ENABLE_NLS setlocale(LC_ALL, ""); @@ -118,7 +113,12 @@ int main(int argc, char **argv) textdomain(PACKAGE); #endif - while ((optc = getopt_long(argc, argv, "8nfdhV",options, NULL)) != -1) { + if (argc < 2) { + usage(); + return 1; + } + + while ((optc = getopt_long(argc, argv, "8ncdhV",options, NULL)) != -1) { switch(optc) { case '8': eight_bit_clean = 1;