aboutsummaryrefslogtreecommitdiff
path: root/src/nse/gnunet-service-nse.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-07 08:48:43 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-07 08:48:43 +0000
commit3853037fa5690e42397cb6e171f8bfc010f405a5 (patch)
treeb497bd14eb5cf2ee4cd1f39cbef2d393f3276cae /src/nse/gnunet-service-nse.c
parent87da62e2d7df26addf33263ef2b6ba4c27faa44b (diff)
downloadgnunet-3853037fa5690e42397cb6e171f8bfc010f405a5.tar.gz
gnunet-3853037fa5690e42397cb6e171f8bfc010f405a5.zip
rename coreAPI to core_api to follow naming conventions better
Diffstat (limited to 'src/nse/gnunet-service-nse.c')
-rw-r--r--src/nse/gnunet-service-nse.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c
index 6dff5b8c5..b69a4a7fe 100644
--- a/src/nse/gnunet-service-nse.c
+++ b/src/nse/gnunet-service-nse.c
@@ -216,7 +216,7 @@ static struct GNUNET_STATISTICS_Handle *stats;
216/** 216/**
217 * Handle to the core service. 217 * Handle to the core service.
218 */ 218 */
219static struct GNUNET_CORE_Handle *coreAPI; 219static struct GNUNET_CORE_Handle *core_api;
220 220
221/** 221/**
222 * Map of all connected peers. 222 * Map of all connected peers.
@@ -660,7 +660,7 @@ transmit_task_cb (void *cls,
660 660
661 GNUNET_assert (NULL == peer_entry->th); 661 GNUNET_assert (NULL == peer_entry->th);
662 peer_entry->th = 662 peer_entry->th =
663 GNUNET_CORE_notify_transmit_ready (coreAPI, GNUNET_NO, NSE_PRIORITY, 663 GNUNET_CORE_notify_transmit_ready (core_api, GNUNET_NO, NSE_PRIORITY,
664 GNUNET_TIME_UNIT_FOREVER_REL, 664 GNUNET_TIME_UNIT_FOREVER_REL,
665 &peer_entry->id, 665 &peer_entry->id,
666 sizeof (struct 666 sizeof (struct
@@ -1324,10 +1324,10 @@ shutdown_task (void *cls,
1324 GNUNET_SERVER_notification_context_destroy (nc); 1324 GNUNET_SERVER_notification_context_destroy (nc);
1325 nc = NULL; 1325 nc = NULL;
1326 } 1326 }
1327 if (NULL != coreAPI) 1327 if (NULL != core_api)
1328 { 1328 {
1329 GNUNET_CORE_disconnect (coreAPI); 1329 GNUNET_CORE_disconnect (core_api);
1330 coreAPI = NULL; 1330 core_api = NULL;
1331 } 1331 }
1332 if (NULL != stats) 1332 if (NULL != stats)
1333 { 1333 {
@@ -1503,7 +1503,7 @@ run (void *cls,
1503 GNUNET_SERVER_add_handlers (srv, handlers); 1503 GNUNET_SERVER_add_handlers (srv, handlers);
1504 nc = GNUNET_SERVER_notification_context_create (srv, 1); 1504 nc = GNUNET_SERVER_notification_context_create (srv, 1);
1505 /* Connect to core service and register core handlers */ 1505 /* Connect to core service and register core handlers */
1506 coreAPI = GNUNET_CORE_connect (cfg, /* Main configuration */ 1506 core_api = GNUNET_CORE_connect (cfg, /* Main configuration */
1507 NULL, /* Closure passed to functions */ 1507 NULL, /* Closure passed to functions */
1508 &core_init, /* Call core_init once connected */ 1508 &core_init, /* Call core_init once connected */
1509 &handle_core_connect, /* Handle connects */ 1509 &handle_core_connect, /* Handle connects */
@@ -1513,7 +1513,7 @@ run (void *cls,
1513 NULL, /* Don't want notified about all outbound messages */ 1513 NULL, /* Don't want notified about all outbound messages */
1514 GNUNET_NO, /* For header only outbound notification */ 1514 GNUNET_NO, /* For header only outbound notification */
1515 core_handlers); /* Register these handlers */ 1515 core_handlers); /* Register these handlers */
1516 if (NULL == coreAPI) 1516 if (NULL == core_api)
1517 { 1517 {
1518 GNUNET_SCHEDULER_shutdown (); 1518 GNUNET_SCHEDULER_shutdown ();
1519 return; 1519 return;