]> granicus.if.org Git - psmisc/commitdiff
peekfd intl and args fixes
authorCraig Small <csmall@users.sourceforge.net>
Thu, 31 May 2007 12:36:49 +0000 (12:36 +0000)
committerCraig Small <csmall@users.sourceforge.net>
Thu, 31 May 2007 12:36:49 +0000 (12:36 +0000)
ChangeLog
src/peekfd.c

index 3fb4788a90ab89c2177a067e0a1d4e53cfadae04..c2f7b8e127592ca36233472b7ff38bc4ad2e3e6d 100644 (file)
--- 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
index 361042e39c84f915e3bcd66d250e2b9fd7955797..e22b7abca156c83c04c30097ba8818559bd445f0 100644 (file)
@@ -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;