diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-11-29 22:44:00 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-11-29 22:44:00 +0100 |
commit | 64c75b64f46f8437f940ce74017641e509cf4c54 (patch) | |
tree | d757caf4ec68a636c5d79a9c87148337d0e82fe1 /src/include/gnunet_common.h | |
parent | 4653c4b44f6171d05453ce49577491d18048788e (diff) | |
download | gnunet-64c75b64f46f8437f940ce74017641e509cf4c54.tar.gz gnunet-64c75b64f46f8437f940ce74017641e509cf4c54.zip |
document rval
Diffstat (limited to 'src/include/gnunet_common.h')
-rw-r--r-- | src/include/gnunet_common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index f4f68a95f..3ac186e0b 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -1081,10 +1081,11 @@ GNUNET_ntoh_double (double d); | |||
1081 | * | 1081 | * |
1082 | * @param a pointer to a struct which should be tested for the | 1082 | * @param a pointer to a struct which should be tested for the |
1083 | * entire memory being zero'ed out. | 1083 | * entire memory being zero'ed out. |
1084 | * @return 0 if a is zero, non-zero otherwise | ||
1084 | */ | 1085 | */ |
1085 | #define GNUNET_is_zero(a) \ | 1086 | #define GNUNET_is_zero(a) \ |
1086 | ({ \ | 1087 | ({ \ |
1087 | static const typeof (*a)_z; \ | 1088 | static const typeof (*a) _z; \ |
1088 | memcmp ((a), &_z, sizeof(_z)); \ | 1089 | memcmp ((a), &_z, sizeof(_z)); \ |
1089 | }) | 1090 | }) |
1090 | 1091 | ||