diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-11-02 21:31:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-11-02 21:31:08 +0000 |
commit | 53b7b9ed132e856d5430246b56e1586d853013a7 (patch) | |
tree | 67222753516e7f1c05e2f5eb31ba330bf3a1e394 /src | |
parent | 4e79e115a5dd0bc399913464cc456ee6ef309c2f (diff) | |
download | gnunet-53b7b9ed132e856d5430246b56e1586d853013a7.tar.gz gnunet-53b7b9ed132e856d5430246b56e1586d853013a7.zip |
-use const for the array
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_service_lib.h | 2 | ||||
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 2 | ||||
-rw-r--r-- | src/util/service.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/include/gnunet_service_lib.h b/src/include/gnunet_service_lib.h index 6a0ae0add..d7a798bc2 100644 --- a/src/include/gnunet_service_lib.h +++ b/src/include/gnunet_service_lib.h | |||
@@ -165,7 +165,7 @@ GNUNET_SERVICE_get_server (struct GNUNET_SERVICE_Context *ctx); | |||
165 | * @return NULL if there are no listen sockets, otherwise NULL-terminated | 165 | * @return NULL if there are no listen sockets, otherwise NULL-terminated |
166 | * array of listen sockets. | 166 | * array of listen sockets. |
167 | */ | 167 | */ |
168 | struct GNUNET_NETWORK_Handle ** | 168 | struct GNUNET_NETWORK_Handle *const * |
169 | GNUNET_SERVICE_get_listen_sockets (struct GNUNET_SERVICE_Context *ctx); | 169 | GNUNET_SERVICE_get_listen_sockets (struct GNUNET_SERVICE_Context *ctx); |
170 | 170 | ||
171 | 171 | ||
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 77997b5ef..310ac3483 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -2679,7 +2679,7 @@ libgnunet_plugin_transport_tcp_init (void *cls) | |||
2679 | unsigned int i; | 2679 | unsigned int i; |
2680 | struct GNUNET_TIME_Relative idle_timeout; | 2680 | struct GNUNET_TIME_Relative idle_timeout; |
2681 | #ifdef SO_TCPSTEALTH | 2681 | #ifdef SO_TCPSTEALTH |
2682 | struct GNUNET_NETWORK_Handle **lsocks; | 2682 | struct GNUNET_NETWORK_Handle *const*lsocks; |
2683 | #endif | 2683 | #endif |
2684 | int ret; | 2684 | int ret; |
2685 | int ret_s; | 2685 | int ret_s; |
diff --git a/src/util/service.c b/src/util/service.c index a97cd434f..c3bb1039e 100644 --- a/src/util/service.c +++ b/src/util/service.c | |||
@@ -1634,7 +1634,7 @@ GNUNET_SERVICE_get_server (struct GNUNET_SERVICE_Context *ctx) | |||
1634 | * @return NULL if there are no listen sockets, otherwise NULL-terminated | 1634 | * @return NULL if there are no listen sockets, otherwise NULL-terminated |
1635 | * array of listen sockets. | 1635 | * array of listen sockets. |
1636 | */ | 1636 | */ |
1637 | struct GNUNET_NETWORK_Handle ** | 1637 | struct GNUNET_NETWORK_Handle *const* |
1638 | GNUNET_SERVICE_get_listen_sockets (struct GNUNET_SERVICE_Context *ctx) | 1638 | GNUNET_SERVICE_get_listen_sockets (struct GNUNET_SERVICE_Context *ctx) |
1639 | { | 1639 | { |
1640 | return ctx->lsocks; | 1640 | return ctx->lsocks; |