diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-06 14:44:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-06 14:44:08 +0000 |
commit | e8cf81fdb3fdaef59b49da8f6e952a3225ab326e (patch) | |
tree | 4e5f75d44a9121b32895fdfc5a4177052a7d923d /src/psycutil | |
parent | ae8cb91d9961899075a892a3110204bc139c2eb6 (diff) | |
download | gnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.tar.gz gnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.zip |
fixing compiler warnings
Diffstat (limited to 'src/psycutil')
-rw-r--r-- | src/psycutil/psyc_message.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/psycutil/psyc_message.c b/src/psycutil/psyc_message.c index e16a4e859..3dba05b3f 100644 --- a/src/psycutil/psyc_message.c +++ b/src/psycutil/psyc_message.c | |||
@@ -282,7 +282,10 @@ GNUNET_PSYC_log_message (enum GNUNET_ErrorType kind, | |||
282 | { | 282 | { |
283 | struct GNUNET_PSYC_MessageMethod *meth | 283 | struct GNUNET_PSYC_MessageMethod *meth |
284 | = (struct GNUNET_PSYC_MessageMethod *) msg; | 284 | = (struct GNUNET_PSYC_MessageMethod *) msg; |
285 | GNUNET_log (kind, "\t%.*s\n", size - sizeof (*meth), &meth[1]); | 285 | GNUNET_log (kind, |
286 | "\t%.*s\n", | ||
287 | (int) (size - sizeof (*meth)), | ||
288 | &meth[1]); | ||
286 | break; | 289 | break; |
287 | } | 290 | } |
288 | case GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_MODIFIER: | 291 | case GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_MODIFIER: |
@@ -291,8 +294,12 @@ GNUNET_PSYC_log_message (enum GNUNET_ErrorType kind, | |||
291 | = (struct GNUNET_PSYC_MessageModifier *) msg; | 294 | = (struct GNUNET_PSYC_MessageModifier *) msg; |
292 | uint16_t name_size = ntohs (mod->name_size); | 295 | uint16_t name_size = ntohs (mod->name_size); |
293 | char oper = ' ' < mod->oper ? mod->oper : ' '; | 296 | char oper = ' ' < mod->oper ? mod->oper : ' '; |
294 | GNUNET_log (kind, "\t%c%.*s\t%.*s\n", oper, name_size, &mod[1], | 297 | GNUNET_log (kind, |
295 | size - sizeof (*mod) - name_size, | 298 | "\t%c%.*s\t%.*s\n", |
299 | oper, | ||
300 | (int) name_size, | ||
301 | &mod[1], | ||
302 | (int) (size - sizeof (*mod) - name_size), | ||
296 | ((char *) &mod[1]) + name_size); | 303 | ((char *) &mod[1]) + name_size); |
297 | break; | 304 | break; |
298 | } | 305 | } |