aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-11-04 21:01:22 +0000
committerChristian Grothoff <christian@grothoff.org>2012-11-04 21:01:22 +0000
commit0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf (patch)
treeac53b9088e75b7041e14e3455698a75da085b3d7 /src/gns
parentb6d09b511fbd61d3b36fde4c28624bed321bf4a1 (diff)
downloadgnunet-0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf.tar.gz
gnunet-0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf.zip
-misc bugfixes, travel hacking
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/gnunet-dns2gns.c2
-rw-r--r--src/gns/gnunet-gns-fcfsd.c2
-rw-r--r--src/gns/gnunet-gns.c2
-rw-r--r--src/gns/test_gns_dht_default.conf1
-rw-r--r--src/gns/test_gns_simple_lookup.conf3
-rw-r--r--src/gns/w32nsp-resolve.c13
6 files changed, 12 insertions, 11 deletions
diff --git a/src/gns/gnunet-dns2gns.c b/src/gns/gnunet-dns2gns.c
index 4954e3b4c..5329e4917 100644
--- a/src/gns/gnunet-dns2gns.c
+++ b/src/gns/gnunet-dns2gns.c
@@ -692,7 +692,7 @@ main (int argc,
692 _("GNUnet DNS-to-GNS proxy (a DNS server)"), 692 _("GNUnet DNS-to-GNS proxy (a DNS server)"),
693 options, 693 options,
694 &run, NULL)) ? 0 : 1; 694 &run, NULL)) ? 0 : 1;
695 695 GNUNET_free ((void*) argv);
696 return ret; 696 return ret;
697} 697}
698 698
diff --git a/src/gns/gnunet-gns-fcfsd.c b/src/gns/gnunet-gns-fcfsd.c
index 5503000ac..c29c7838a 100644
--- a/src/gns/gnunet-gns-fcfsd.c
+++ b/src/gns/gnunet-gns-fcfsd.c
@@ -970,7 +970,7 @@ main (int argc, char *const *argv)
970 _("GNUnet GNS first come first serve registration service"), 970 _("GNUnet GNS first come first serve registration service"),
971 options, 971 options,
972 &run, NULL)) ? 0 : 1; 972 &run, NULL)) ? 0 : 1;
973 973 GNUNET_free ((void*) argv);
974 return ret; 974 return ret;
975} 975}
976 976
diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c
index ba30b56fb..d7e8309dd 100644
--- a/src/gns/gnunet-gns.c
+++ b/src/gns/gnunet-gns.c
@@ -381,7 +381,7 @@ main (int argc, char *const *argv)
381 _("GNUnet GNS access tool"), 381 _("GNUnet GNS access tool"),
382 options, 382 options,
383 &run, NULL)) ? 0 : 1; 383 &run, NULL)) ? 0 : 1;
384 384 GNUNET_free ((void*) argv);
385 return ret; 385 return ret;
386} 386}
387 387
diff --git a/src/gns/test_gns_dht_default.conf b/src/gns/test_gns_dht_default.conf
index b22f002fb..a14588c41 100644
--- a/src/gns/test_gns_dht_default.conf
+++ b/src/gns/test_gns_dht_default.conf
@@ -7,7 +7,6 @@ PORT = 22568
7 7
8[dht] 8[dht]
9UNIXPATH = /tmp/gnunet-service-dht.sock 9UNIXPATH = /tmp/gnunet-service-dht.sock
10DEBUG = NO
11AUTOSTART = YES 10AUTOSTART = YES
12ACCEPT_FROM6 = ::1; 11ACCEPT_FROM6 = ::1;
13ACCEPT_FROM = 127.0.0.1; 12ACCEPT_FROM = 127.0.0.1;
diff --git a/src/gns/test_gns_simple_lookup.conf b/src/gns/test_gns_simple_lookup.conf
index ca1699c2f..f759ba448 100644
--- a/src/gns/test_gns_simple_lookup.conf
+++ b/src/gns/test_gns_simple_lookup.conf
@@ -7,7 +7,6 @@ AUTOSTART = YES
7HOSTNAME = localhost 7HOSTNAME = localhost
8 8
9[dht] 9[dht]
10DEBUG = NO
11AUTOSTART = YES 10AUTOSTART = YES
12ACCEPT_FROM6 = ::1; 11ACCEPT_FROM6 = ::1;
13ACCEPT_FROM = 127.0.0.1; 12ACCEPT_FROM = 127.0.0.1;
@@ -24,7 +23,6 @@ DATABASE = sqlite
24 23
25[transport] 24[transport]
26PLUGINS = tcp 25PLUGINS = tcp
27DEBUG = NO
28ACCEPT_FROM6 = ::1; 26ACCEPT_FROM6 = ::1;
29ACCEPT_FROM = 127.0.0.1; 27ACCEPT_FROM = 127.0.0.1;
30NEIGHBOUR_LIMIT = 50 28NEIGHBOUR_LIMIT = 50
@@ -40,7 +38,6 @@ PORT = 12092
40[arm] 38[arm]
41DEFAULTSERVICES = core dht namestore gns 39DEFAULTSERVICES = core dht namestore gns
42PORT = 12366 40PORT = 12366
43DEBUG = NO
44 41
45[transport-tcp] 42[transport-tcp]
46TIMEOUT = 300 s 43TIMEOUT = 300 s
diff --git a/src/gns/w32nsp-resolve.c b/src/gns/w32nsp-resolve.c
index 4a116f594..3234a1ee5 100644
--- a/src/gns/w32nsp-resolve.c
+++ b/src/gns/w32nsp-resolve.c
@@ -57,7 +57,8 @@ DEFINE_GUID(SVCID_INET_HOSTADDRBYNAME, 0x0002a803, 0x0000, 0x0000, 0xc0, 0x00, 0
57// to convert structures returned as BLOBs. 57// to convert structures returned as BLOBs.
58// 58//
59 59
60VOID FixList(PCHAR ** List, PCHAR Base) 60VOID
61FixList(PCHAR ** List, PCHAR Base)
61{ 62{
62 if(*List) 63 if(*List)
63 { 64 {
@@ -77,7 +78,8 @@ VOID FixList(PCHAR ** List, PCHAR Base)
77// Routine to convert a hostent returned in a BLOB to one with 78// Routine to convert a hostent returned in a BLOB to one with
78// usable pointers. The structure is converted in-place. 79// usable pointers. The structure is converted in-place.
79// 80//
80VOID UnpackHostEnt(struct hostent * hostent) 81VOID
82UnpackHostEnt(struct hostent * hostent)
81{ 83{
82 PCHAR pch; 84 PCHAR pch;
83 85
@@ -91,13 +93,15 @@ VOID UnpackHostEnt(struct hostent * hostent)
91 FixList(&hostent->h_addr_list, pch); 93 FixList(&hostent->h_addr_list, pch);
92} 94}
93 95
94void 96
97static void
95print_hostent (struct hostent *he) 98print_hostent (struct hostent *he)
96{ 99{
97 int i; 100 int i;
98 char **pAlias; 101 char **pAlias;
102
99 printf("\tOfficial name: %s\n", he->h_name); 103 printf("\tOfficial name: %s\n", he->h_name);
100 for (pAlias = he->h_aliases; *pAlias != 0; pAlias++) { 104 for (i=0, pAlias = he->h_aliases; *pAlias != 0; pAlias++) {
101 printf("\tAlternate name #%d: %s\n", ++i, *pAlias); 105 printf("\tAlternate name #%d: %s\n", ++i, *pAlias);
102 } 106 }
103 printf("\tAddress type: "); 107 printf("\tAddress type: ");
@@ -150,6 +154,7 @@ print_hostent (struct hostent *he)
150 } 154 }
151} 155}
152 156
157
153int 158int
154main (int argc, char **argv) 159main (int argc, char **argv)
155{ 160{