aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxrs <xrs@mail36.net>2017-04-12 20:20:51 +0200
committerxrs <xrs@mail36.net>2017-04-12 20:20:51 +0200
commitacfd78293352b5cdd640023343db3578fdceea94 (patch)
tree06a5f3c8be7a6356a3938752474a7bc242ea3759 /src
parent990c536e0f1c4adce5ba49897e2084d6296fdafc (diff)
parent51e9f26b1014d6f935cacad7da75d98234653482 (diff)
downloadgnunet-acfd78293352b5cdd640023343db3578fdceea94.tar.gz
gnunet-acfd78293352b5cdd640023343db3578fdceea94.zip
Merge branch 'master' of ssh://gnunet.org/gnunet
Diffstat (limited to 'src')
-rw-r--r--src/ats-tests/Makefile.am3
-rw-r--r--src/cadet/cadet_api.c16
-rw-r--r--src/conversation/gnunet-service-conversation.c8
-rw-r--r--src/fs/fs_unindex.c14
-rw-r--r--src/include/gnunet_cadet_service.h2
-rw-r--r--src/include/gnunet_disk_lib.h3
-rw-r--r--src/namestore/Makefile.am1
-rw-r--r--src/secretsharing/Makefile.am3
-rw-r--r--src/testbed/Makefile.am1
-rw-r--r--src/util/strings.c1
10 files changed, 34 insertions, 18 deletions
diff --git a/src/ats-tests/Makefile.am b/src/ats-tests/Makefile.am
index 4811bc8d7..53b37b558 100644
--- a/src/ats-tests/Makefile.am
+++ b/src/ats-tests/Makefile.am
@@ -1,4 +1,4 @@
1# This Makefile.am is in the public domain 1#t This Makefile.am is in the public domain
2AM_CPPFLAGS = -I$(top_srcdir)/src/include 2AM_CPPFLAGS = -I$(top_srcdir)/src/include
3 3
4pkgcfgdir= $(pkgdatadir)/config.d/ 4pkgcfgdir= $(pkgdatadir)/config.d/
@@ -60,6 +60,7 @@ libgnunetatstesting_la_SOURCES = \
60libgnunetatstesting_la_LIBADD = \ 60libgnunetatstesting_la_LIBADD = \
61 $(top_builddir)/src/testbed/libgnunettestbed.la \ 61 $(top_builddir)/src/testbed/libgnunettestbed.la \
62 $(top_builddir)/src/ats/libgnunetats.la \ 62 $(top_builddir)/src/ats/libgnunetats.la \
63 $(top_builddir)/src/util/libgnunetutil.la \
63 $(GN_LIBINTL) 64 $(GN_LIBINTL)
64libgnunetatstesting_la_DEPENDENCIES = \ 65libgnunetatstesting_la_DEPENDENCIES = \
65 $(top_builddir)/src/testbed/libgnunettestbed.la \ 66 $(top_builddir)/src/testbed/libgnunettestbed.la \
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c
index decf473a9..3fdeffe13 100644
--- a/src/cadet/cadet_api.c
+++ b/src/cadet/cadet_api.c
@@ -1583,7 +1583,7 @@ GNUNET_CADET_connect (const struct GNUNET_CONFIGURATION_Handle *cfg)
1583 * @param window_changes Function called when the transmit window size changes. 1583 * @param window_changes Function called when the transmit window size changes.
1584 * @param disconnects Function called when a channel is disconnected. 1584 * @param disconnects Function called when a channel is disconnected.
1585 * @param handlers Callbacks for messages we care about, NULL-terminated. 1585 * @param handlers Callbacks for messages we care about, NULL-terminated.
1586 * @return Port handle. 1586 * @return Port handle, NULL if port is in use
1587 */ 1587 */
1588struct GNUNET_CADET_Port * 1588struct GNUNET_CADET_Port *
1589GNUNET_CADET_open_port (struct GNUNET_CADET_Handle *h, 1589GNUNET_CADET_open_port (struct GNUNET_CADET_Handle *h,
@@ -1604,17 +1604,21 @@ GNUNET_CADET_open_port (struct GNUNET_CADET_Handle *h,
1604 p = GNUNET_new (struct GNUNET_CADET_Port); 1604 p = GNUNET_new (struct GNUNET_CADET_Port);
1605 p->cadet = h; 1605 p->cadet = h;
1606 p->id = *port; 1606 p->id = *port;
1607 if (GNUNET_OK !=
1608 GNUNET_CONTAINER_multihashmap_put (h->ports,
1609 &p->id,
1610 p,
1611 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY))
1612 {
1613 GNUNET_free (p);
1614 return NULL;
1615 }
1607 p->connects = connects; 1616 p->connects = connects;
1608 p->cls = connects_cls; 1617 p->cls = connects_cls;
1609 p->window_changes = window_changes; 1618 p->window_changes = window_changes;
1610 p->disconnects = disconnects; 1619 p->disconnects = disconnects;
1611 p->handlers = GNUNET_MQ_copy_handlers (handlers); 1620 p->handlers = GNUNET_MQ_copy_handlers (handlers);
1612 1621
1613 GNUNET_assert (GNUNET_OK ==
1614 GNUNET_CONTAINER_multihashmap_put (h->ports,
1615 &p->id,
1616 p,
1617 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY));
1618 1622
1619 env = GNUNET_MQ_msg (msg, 1623 env = GNUNET_MQ_msg (msg,
1620 GNUNET_MESSAGE_TYPE_CADET_LOCAL_PORT_OPEN); 1624 GNUNET_MESSAGE_TYPE_CADET_LOCAL_PORT_OPEN);
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c
index 5f43bfe80..7d319e51e 100644
--- a/src/conversation/gnunet-service-conversation.c
+++ b/src/conversation/gnunet-service-conversation.c
@@ -1270,6 +1270,14 @@ handle_client_register_message (void *cls,
1270 NULL, 1270 NULL,
1271 &inbound_end, 1271 &inbound_end,
1272 cadet_handlers); 1272 cadet_handlers);
1273 if (NULL == line->port)
1274 {
1275 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
1276 _("Could not open line, port %s already in use!\n"),
1277 GNUNET_h2s (&msg->line_port));
1278 GNUNET_SERVICE_client_drop (line->client);
1279 return;
1280 }
1273 GNUNET_SERVICE_client_continue (line->client); 1281 GNUNET_SERVICE_client_continue (line->client);
1274} 1282}
1275 1283
diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c
index e1c7ea535..95a48f8cc 100644
--- a/src/fs/fs_unindex.c
+++ b/src/fs/fs_unindex.c
@@ -464,19 +464,21 @@ continue_after_remove (void *cls,
464 * @param type type of the content 464 * @param type type of the content
465 * @param priority priority of the content 465 * @param priority priority of the content
466 * @param anonymity anonymity-level for the content 466 * @param anonymity anonymity-level for the content
467 * @param replication replication-level for the content
467 * @param expiration expiration time for the content 468 * @param expiration expiration time for the content
468 * @param uid unique identifier for the datum; 469 * @param uid unique identifier for the datum;
469 * maybe 0 if no unique identifier is available 470 * maybe 0 if no unique identifier is available
470 */ 471 */
471static void 472static void
472process_kblock_for_unindex (void *cls, 473process_kblock_for_unindex (void *cls,
473 const struct GNUNET_HashCode *key, 474 const struct GNUNET_HashCode *key,
474 size_t size, 475 size_t size,
475 const void *data, 476 const void *data,
476 enum GNUNET_BLOCK_Type type, 477 enum GNUNET_BLOCK_Type type,
477 uint32_t priority, 478 uint32_t priority,
478 uint32_t anonymity, 479 uint32_t anonymity,
479 struct GNUNET_TIME_Absolute expiration, 480 uint32_t replication,
481 struct GNUNET_TIME_Absolute expiration,
480 uint64_t uid) 482 uint64_t uid)
481{ 483{
482 struct GNUNET_FS_UnindexContext *uc = cls; 484 struct GNUNET_FS_UnindexContext *uc = cls;
diff --git a/src/include/gnunet_cadet_service.h b/src/include/gnunet_cadet_service.h
index f76f17a51..e2edbcc2c 100644
--- a/src/include/gnunet_cadet_service.h
+++ b/src/include/gnunet_cadet_service.h
@@ -221,7 +221,7 @@ GNUNET_CADET_disconnect (struct GNUNET_CADET_Handle *handle);
221 * Can be NULL. 221 * Can be NULL.
222 * @param disconnects Function called when a channel is disconnected. 222 * @param disconnects Function called when a channel is disconnected.
223 * @param handlers Callbacks for messages we care about, NULL-terminated. 223 * @param handlers Callbacks for messages we care about, NULL-terminated.
224 * @return Port handle. 224 * @return Port handle, NULL if port is in use
225 */ 225 */
226struct GNUNET_CADET_Port * 226struct GNUNET_CADET_Port *
227GNUNET_CADET_open_port (struct GNUNET_CADET_Handle *h, 227GNUNET_CADET_open_port (struct GNUNET_CADET_Handle *h,
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h
index 02c4b3674..be2885460 100644
--- a/src/include/gnunet_disk_lib.h
+++ b/src/include/gnunet_disk_lib.h
@@ -331,7 +331,8 @@ GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle *h, off_t offset,
331 * @return #GNUNET_SYSERR on error, #GNUNET_OK on success 331 * @return #GNUNET_SYSERR on error, #GNUNET_OK on success
332 */ 332 */
333int 333int
334GNUNET_DISK_file_size (const char *filename, uint64_t *size, 334GNUNET_DISK_file_size (const char *filename,
335 uint64_t *size,
335 int include_symbolic_links, 336 int include_symbolic_links,
336 int single_file_mode); 337 int single_file_mode);
337 338
diff --git a/src/namestore/Makefile.am b/src/namestore/Makefile.am
index de46e9c89..1b99fcc45 100644
--- a/src/namestore/Makefile.am
+++ b/src/namestore/Makefile.am
@@ -114,7 +114,6 @@ libgnunetnamestore_la_SOURCES = \
114libgnunetnamestore_la_LIBADD = \ 114libgnunetnamestore_la_LIBADD = \
115 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 115 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
116 $(top_builddir)/src/statistics/libgnunetstatistics.la \ 116 $(top_builddir)/src/statistics/libgnunetstatistics.la \
117 $(top_builddir)/src/dns/libgnunetdnsparser.la \
118 $(top_builddir)/src/util/libgnunetutil.la \ 117 $(top_builddir)/src/util/libgnunetutil.la \
119 $(GN_LIBINTL) 118 $(GN_LIBINTL)
120libgnunetnamestore_la_LDFLAGS = \ 119libgnunetnamestore_la_LDFLAGS = \
diff --git a/src/secretsharing/Makefile.am b/src/secretsharing/Makefile.am
index 4b9a06c40..5ab8739af 100644
--- a/src/secretsharing/Makefile.am
+++ b/src/secretsharing/Makefile.am
@@ -47,8 +47,9 @@ libgnunetsecretsharing_la_SOURCES = \
47 secretsharing_api.c \ 47 secretsharing_api.c \
48 secretsharing_common.c \ 48 secretsharing_common.c \
49 secretsharing.h 49 secretsharing.h
50libgnunetsecretsharing_la_LIBADD = \ 50libgnunetsecretsharing_la_LIBADD = \
51 $(top_builddir)/src/util/libgnunetutil.la \ 51 $(top_builddir)/src/util/libgnunetutil.la \
52 $(LIBGCRYPT_LIBS) \
52 $(LTLIBINTL) 53 $(LTLIBINTL)
53libgnunetsecretsharing_la_LDFLAGS = \ 54libgnunetsecretsharing_la_LDFLAGS = \
54 $(GN_LIB_LDFLAGS) 55 $(GN_LIB_LDFLAGS)
diff --git a/src/testbed/Makefile.am b/src/testbed/Makefile.am
index 61cfba2ff..94b981eee 100644
--- a/src/testbed/Makefile.am
+++ b/src/testbed/Makefile.am
@@ -106,7 +106,6 @@ libgnunettestbed_la_SOURCES = \
106 testbed_api_sd.c testbed_api_sd.h \ 106 testbed_api_sd.c testbed_api_sd.h \
107 testbed_api_barriers.c 107 testbed_api_barriers.c
108libgnunettestbed_la_LIBADD = $(XLIB) \ 108libgnunettestbed_la_LIBADD = $(XLIB) \
109 $(top_builddir)/src/core/libgnunetcore.la \
110 $(top_builddir)/src/statistics/libgnunetstatistics.la \ 109 $(top_builddir)/src/statistics/libgnunetstatistics.la \
111 $(top_builddir)/src/transport/libgnunettransport.la \ 110 $(top_builddir)/src/transport/libgnunettransport.la \
112 $(top_builddir)/src/hello/libgnunethello.la \ 111 $(top_builddir)/src/hello/libgnunethello.la \
diff --git a/src/util/strings.c b/src/util/strings.c
index d3268f4d9..f554a9e83 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -818,6 +818,7 @@ GNUNET_STRINGS_get_short_name (const char *filename)
818{ 818{
819 const char *short_fn = filename; 819 const char *short_fn = filename;
820 const char *ss; 820 const char *ss;
821
821 while (NULL != (ss = strstr (short_fn, DIR_SEPARATOR_STR)) 822 while (NULL != (ss = strstr (short_fn, DIR_SEPARATOR_STR))
822 && (ss[1] != '\0')) 823 && (ss[1] != '\0'))
823 short_fn = 1 + ss; 824 short_fn = 1 + ss;