diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-26 11:58:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-26 11:58:56 +0000 |
commit | c0101989bb0864a3688f57370e712c91c14ab1cd (patch) | |
tree | 6ebabad614d272cd6ec2a0562ae64a5555094808 /src/regex/regex_internal_dht.c | |
parent | 3ad9123d92423ebf5639ecb86a8e5dd491dffd38 (diff) | |
download | gnunet-c0101989bb0864a3688f57370e712c91c14ab1cd.tar.gz gnunet-c0101989bb0864a3688f57370e712c91c14ab1cd.zip |
-follow naming and coding style conventions
Diffstat (limited to 'src/regex/regex_internal_dht.c')
-rw-r--r-- | src/regex/regex_internal_dht.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/regex/regex_internal_dht.c b/src/regex/regex_internal_dht.c index 28ab884eb..bf15b9a96 100644 --- a/src/regex/regex_internal_dht.c +++ b/src/regex/regex_internal_dht.c | |||
@@ -382,7 +382,7 @@ regex_find_path (const struct GNUNET_HashCode *key, | |||
382 | */ | 382 | */ |
383 | static void | 383 | static void |
384 | dht_get_string_handler (void *cls, struct GNUNET_TIME_Absolute exp, | 384 | dht_get_string_handler (void *cls, struct GNUNET_TIME_Absolute exp, |
385 | const struct GNUNET_HashCode * key, | 385 | const struct GNUNET_HashCode *key, |
386 | const struct GNUNET_PeerIdentity *get_path, | 386 | const struct GNUNET_PeerIdentity *get_path, |
387 | unsigned int get_path_length, | 387 | unsigned int get_path_length, |
388 | const struct GNUNET_PeerIdentity *put_path, | 388 | const struct GNUNET_PeerIdentity *put_path, |
@@ -398,7 +398,8 @@ dht_get_string_handler (void *cls, struct GNUNET_TIME_Absolute exp, | |||
398 | char *datastore; | 398 | char *datastore; |
399 | 399 | ||
400 | #if DEBUG_DHT | 400 | #if DEBUG_DHT |
401 | if (NULL != put_path && 0 != put_path_length) | 401 | if ( (NULL != put_path) && |
402 | (0 != put_path_length) ) | ||
402 | { | 403 | { |
403 | datastore = GNUNET_strdup (GNUNET_i2s (&put_path[put_path_length - 1])); | 404 | datastore = GNUNET_strdup (GNUNET_i2s (&put_path[put_path_length - 1])); |
404 | } | 405 | } |