gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r3663 - in GNUnet/src/util: . boot


From: grothoff
Subject: [GNUnet-SVN] r3663 - in GNUnet/src/util: . boot
Date: Tue, 7 Nov 2006 12:08:56 -0800 (PST)

Author: grothoff
Date: 2006-11-07 12:08:46 -0800 (Tue, 07 Nov 2006)
New Revision: 3663

Removed:
   GNUnet/src/util/dump
Modified:
   GNUnet/src/util/boot/startup.c
Log:
initialize NLS

Modified: GNUnet/src/util/boot/startup.c
===================================================================
--- GNUnet/src/util/boot/startup.c      2006-11-07 20:06:31 UTC (rev 3662)
+++ GNUnet/src/util/boot/startup.c      2006-11-07 20:08:46 UTC (rev 3663)
@@ -142,6 +142,11 @@
                struct GC_Configuration ** cfg) {
   int i;
 
+ #if ENABLE_NLS
+  setlocale (LC_ALL, "");
+  BINDTEXTDOMAIN("GNUnet", LOCALEDIR);
+  textdomain("GNUnet");
+#endif
   /* during startup, log all warnings and higher
      for anybody to stderr */
   *ectx = GE_create_context_stderr(NO,

Deleted: GNUnet/src/util/dump
===================================================================
--- GNUnet/src/util/dump        2006-11-07 20:06:31 UTC (rev 3662)
+++ GNUnet/src/util/dump        2006-11-07 20:08:46 UTC (rev 3663)
@@ -1,27 +0,0 @@
-#if ENABLE_NLS
-  setlocale (LC_ALL, "");
-  BINDTEXTDOMAIN("GNUnet", LOCALEDIR);
-  textdomain("GNUnet");
-#endif
-
-
-  case 'H': {
-    port_string = strstr(optarg, ":");   
-    if (NULL != port_string) {
-      port = (unsigned short) atoi(port_string+1);
-      setConfigurationInt("NETWORK",
-                         "CLIENT-PORT",
-                         port);
-      host = MALLOC(1 + port_string - optarg);
-      memcpy(host, optarg, port_string - optarg);
-      host[port_string - optarg] = '\0';
-    } else {
-      host = STRDUP(optarg);
-    }
-    FREENONNULL(setConfigurationString("NETWORK",
-                                      "HOST",
-                                      host));
-    FREE(host);
-    break;
-  }
-





reply via email to

[Prev in Thread] Current Thread [Next in Thread]