diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-11-04 21:01:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-11-04 21:01:22 +0000 |
commit | 0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf (patch) | |
tree | ac53b9088e75b7041e14e3455698a75da085b3d7 /src/gns | |
parent | b6d09b511fbd61d3b36fde4c28624bed321bf4a1 (diff) | |
download | gnunet-0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf.tar.gz gnunet-0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf.zip |
-misc bugfixes, travel hacking
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-dns2gns.c | 2 | ||||
-rw-r--r-- | src/gns/gnunet-gns-fcfsd.c | 2 | ||||
-rw-r--r-- | src/gns/gnunet-gns.c | 2 | ||||
-rw-r--r-- | src/gns/test_gns_dht_default.conf | 1 | ||||
-rw-r--r-- | src/gns/test_gns_simple_lookup.conf | 3 | ||||
-rw-r--r-- | src/gns/w32nsp-resolve.c | 13 |
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] |
9 | UNIXPATH = /tmp/gnunet-service-dht.sock | 9 | UNIXPATH = /tmp/gnunet-service-dht.sock |
10 | DEBUG = NO | ||
11 | AUTOSTART = YES | 10 | AUTOSTART = YES |
12 | ACCEPT_FROM6 = ::1; | 11 | ACCEPT_FROM6 = ::1; |
13 | ACCEPT_FROM = 127.0.0.1; | 12 | ACCEPT_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 | |||
7 | HOSTNAME = localhost | 7 | HOSTNAME = localhost |
8 | 8 | ||
9 | [dht] | 9 | [dht] |
10 | DEBUG = NO | ||
11 | AUTOSTART = YES | 10 | AUTOSTART = YES |
12 | ACCEPT_FROM6 = ::1; | 11 | ACCEPT_FROM6 = ::1; |
13 | ACCEPT_FROM = 127.0.0.1; | 12 | ACCEPT_FROM = 127.0.0.1; |
@@ -24,7 +23,6 @@ DATABASE = sqlite | |||
24 | 23 | ||
25 | [transport] | 24 | [transport] |
26 | PLUGINS = tcp | 25 | PLUGINS = tcp |
27 | DEBUG = NO | ||
28 | ACCEPT_FROM6 = ::1; | 26 | ACCEPT_FROM6 = ::1; |
29 | ACCEPT_FROM = 127.0.0.1; | 27 | ACCEPT_FROM = 127.0.0.1; |
30 | NEIGHBOUR_LIMIT = 50 | 28 | NEIGHBOUR_LIMIT = 50 |
@@ -40,7 +38,6 @@ PORT = 12092 | |||
40 | [arm] | 38 | [arm] |
41 | DEFAULTSERVICES = core dht namestore gns | 39 | DEFAULTSERVICES = core dht namestore gns |
42 | PORT = 12366 | 40 | PORT = 12366 |
43 | DEBUG = NO | ||
44 | 41 | ||
45 | [transport-tcp] | 42 | [transport-tcp] |
46 | TIMEOUT = 300 s | 43 | TIMEOUT = 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 | ||
60 | VOID FixList(PCHAR ** List, PCHAR Base) | 60 | VOID |
61 | FixList(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 | // |
80 | VOID UnpackHostEnt(struct hostent * hostent) | 81 | VOID |
82 | UnpackHostEnt(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 | ||
94 | void | 96 | |
97 | static void | ||
95 | print_hostent (struct hostent *he) | 98 | print_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 | |||
153 | int | 158 | int |
154 | main (int argc, char **argv) | 159 | main (int argc, char **argv) |
155 | { | 160 | { |