From: Martin Schanzenbach Date: Mon, 26 Mar 2012 15:18:23 +0000 (+0000) Subject: -fixes X-Git-Tag: initial-import-from-subversion-38251~14079 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=801e0753291fce6fce9e73f99f12c34957b09920;p=oweals%2Fgnunet.git -fixes --- diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index 733886f3a..d851ef7a4 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c @@ -154,28 +154,6 @@ static int auto_import_pkey; /* lookup timeout */ static struct GNUNET_TIME_Relative default_lookup_timeout; -/** - * Normalizes the name in old - * - * @param old the old name to normalize - * @param new the buffer to write the new name to - * -static void -normalize_name(const char* old, char** new) -{ - uint8_t *tmp_name; - size_t n_len; - - tmp_name = u8_tolower ((uint8_t*)old, strlen ((char *) old), - NULL, UNINORM_NFD, NULL, &n_len); - - memcpy(*new, tmp_name, n_len); - (*new)[n_len] = '\0'; - free(tmp_name); -} -*/ - - /** * Continue shutdown */ diff --git a/src/gns/proxy/gnunet-gns-proxy.py b/src/gns/proxy/gnunet-gns-proxy.py index aea625cbb..094f5412c 100644 --- a/src/gns/proxy/gnunet-gns-proxy.py +++ b/src/gns/proxy/gnunet-gns-proxy.py @@ -150,7 +150,6 @@ class ProxyHandler (BaseHTTPServer.BaseHTTPRequestHandler): data = i.recv(8192) if data: try: - print self.headers data = re.sub(r'\nAccept-Ranges: \w+', r'', data) data = re.sub('(a href="http://(\w+\.)*zkey)', self.shorten_zkey(), data) @@ -159,7 +158,6 @@ class ProxyHandler (BaseHTTPServer.BaseHTTPRequestHandler): arr.pop(0) data = re.sub('(a href="http://(\w+\.)*)(\+)', self.replace_and_shorten(to_repl), data) - print data out.send(data) count = 0 except: