]> git.pld-linux.org Git - packages/busybox.git/commitdiff
- updated for 1.6.0
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 3 Jun 2007 18:28:17 +0000 (18:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    busybox-printf-gettext.patch -> 1.8

busybox-printf-gettext.patch

index 35642459833fbc093c8bddd2bd3a8b134ecd14ee..4adc07e9231a53c4a646a4536a2360145da5ded4 100644 (file)
@@ -1,5 +1,6 @@
---- busybox-1.3.1/coreutils/printf.c.orig      2006-12-27 05:54:50.000000000 +0100
-+++ busybox-1.3.1/coreutils/printf.c   2006-12-30 12:28:27.605589427 +0100
+diff -urN busybox-1.6.0.org/coreutils/printf.c busybox-1.6.0/coreutils/printf.c
+--- busybox-1.6.0.org/coreutils/printf.c       2007-06-01 13:48:34.000000000 +0200
++++ busybox-1.6.0/coreutils/printf.c   2007-06-03 20:27:45.511646939 +0200
 @@ -38,6 +38,9 @@
  
  //   19990508 Busy Boxed! Dave Cinege
@@ -7,10 +8,10 @@
 +// on by default
 +#define BB_FEATURE_PRINTF_GETTEXT
 +
- #include "busybox.h"
+ #include "libbb.h"
  
static int print_formatted(char *format, int argc, char **argv);
-@@ -288,19 +288,135 @@
typedef void (*converter)(const char *arg, void *result);
+@@ -285,19 +288,137 @@
        return save_argc - argc;
  }
  
@@ -57,7 +58,6 @@
 +              ((i >> 8) & 0xff00) | (i >> 24);
 +}
 +#define swap_if(a) ((has_to_swap) ? swap(a) : (a))
-+
 +static char *getmsg(const char *filename, const char *msgid)
 +{
 +      int fd;
 -      int args_used;
 +      int args_used, opt;
 +      const char *nls_file = NULL;
--      if (argc <= 1 || argv[1][0] == '-') {
--              bb_show_usage();
--      }
++
 +      while ((opt = getopt(argc, argv, "n:")) != -1)
 +              switch (opt) {
 +                      case 'n':
 +                              bb_show_usage();
 +                              break;
 +              }
-+
 +      format = getmsg(nls_file, argv[optind++]);
  
+       if (argc <= 1 || argv[1][0] == '-') {
+               bb_show_usage();
+       }
 -      format = argv[1];
 -      argc -= 2;
 -      argv += 2;
This page took 0.105244 seconds and 4 git commands to generate.