gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: add missing () in macros


From: gnunet
Subject: [gnunet] branch master updated: add missing () in macros
Date: Mon, 02 Sep 2024 00:02:50 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 803c89104 add missing () in macros
803c89104 is described below

commit 803c89104487806f5c6cd2a7892d3bd314a66040
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Sep 2 00:02:43 2024 +0200

    add missing () in macros
---
 contrib/handbook              |  2 +-
 src/include/gnunet_json_lib.h | 28 ++++++++++++++++------------
 2 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/contrib/handbook b/contrib/handbook
index 57e146d7f..8e42a13a1 160000
--- a/contrib/handbook
+++ b/contrib/handbook
@@ -1 +1 @@
-Subproject commit 57e146d7f375860cc3e12ae127c90c215e343a2f
+Subproject commit 8e42a13a1edcf9ecf2603e9866140ff55fa45584
diff --git a/src/include/gnunet_json_lib.h b/src/include/gnunet_json_lib.h
index 5f4d5134d..7d8f26856 100644
--- a/src/include/gnunet_json_lib.h
+++ b/src/include/gnunet_json_lib.h
@@ -200,7 +200,7 @@ GNUNET_JSON_spec_fixed (const char *name,
  * @param obj pointer where to write the data (type of `*obj` will determine 
size)
  */
 #define GNUNET_JSON_spec_fixed_auto(name, obj) \
-  GNUNET_JSON_spec_fixed (name, obj, sizeof(*obj))
+        GNUNET_JSON_spec_fixed (name, (obj), sizeof(*(obj)))
 
 
 /**
@@ -223,7 +223,7 @@ GNUNET_JSON_spec_fixed64 (const char *name,
  * @param obj pointer where to write the data (type of `*obj` will determine 
size)
  */
 #define GNUNET_JSON_spec_fixed64_auto(name, obj) \
-  GNUNET_JSON_spec_fixed (name, obj, sizeof(*obj))
+        GNUNET_JSON_spec_fixed (name, (obj), sizeof(*(obj)))
 
 
 /**
@@ -449,7 +449,8 @@ GNUNET_JSON_spec_blinded_message (const char *name,
  */
 struct GNUNET_JSON_Specification
 GNUNET_JSON_spec_blinded_signature (const char *field,
-                                    struct GNUNET_CRYPTO_BlindedSignature 
**b_sig);
+                                    struct GNUNET_CRYPTO_BlindedSignature **
+                                    b_sig);
 
 
 /**
@@ -460,7 +461,8 @@ GNUNET_JSON_spec_blinded_signature (const char *field,
  */
 struct GNUNET_JSON_Specification
 GNUNET_JSON_spec_unblinded_signature (const char *field,
-                                     struct GNUNET_CRYPTO_UnblindedSignature 
**ub_sig);
+                                      struct GNUNET_CRYPTO_UnblindedSignature 
**
+                                      ub_sig);
 
 
 /* ****************** Generic generator interface ******************* */
@@ -500,7 +502,7 @@ GNUNET_JSON_from_data64 (const void *data,
  * @return json string that encodes @a data
  */
 #define GNUNET_JSON_from_data_auto(ptr) \
-  GNUNET_JSON_from_data (ptr, sizeof(*ptr))
+        GNUNET_JSON_from_data (ptr, sizeof(*(ptr)))
 
 
 /**
@@ -511,7 +513,7 @@ GNUNET_JSON_from_data64 (const void *data,
  * @return json string that encodes @a data
  */
 #define GNUNET_JSON_from_data64_auto(ptr) \
-  GNUNET_JSON_from_data64 (ptr, sizeof(*ptr))
+        GNUNET_JSON_from_data64 (ptr, sizeof(*(ptr)))
 
 
 /**
@@ -716,8 +718,8 @@ GNUNET_JSON_pack_ (struct GNUNET_JSON_PackSpec spec[]);
  * @return JSON object
  */
 #define GNUNET_JSON_PACK(...) \
-  GNUNET_JSON_pack_ ((struct GNUNET_JSON_PackSpec[]) {__VA_ARGS__, \
-                                                      GNUNET_JSON_pack_end_ 
()})
+        GNUNET_JSON_pack_ ((struct GNUNET_JSON_PackSpec[]) {__VA_ARGS__, \
+                                                            
GNUNET_JSON_pack_end_ ()})
 
 
 /**
@@ -885,7 +887,7 @@ GNUNET_JSON_pack_data_varsize (const char *name,
  * @return json pack specification
  */
 #define GNUNET_JSON_pack_data_auto(name,blob) \
-  GNUNET_JSON_pack_data_varsize (name, blob, sizeof (*blob))
+        GNUNET_JSON_pack_data_varsize (name, (blob), sizeof (*(blob)))
 
 
 /**
@@ -916,7 +918,7 @@ GNUNET_JSON_pack_data64_varsize (const char *name,
  * @return json pack specification
  */
 #define GNUNET_JSON_pack_data64_auto(name,blob) \
-  GNUNET_JSON_pack_data64_varsize (name, blob, sizeof (*blob))
+        GNUNET_JSON_pack_data64_varsize (name, (blob), sizeof (*(blob)))
 
 
 /**
@@ -1009,7 +1011,8 @@ GNUNET_JSON_pack_rsa_signature (const char *name,
  */
 struct GNUNET_JSON_PackSpec
 GNUNET_JSON_pack_unblinded_signature (const char *name,
-                                      const struct 
GNUNET_CRYPTO_UnblindedSignature *sig);
+                                      const struct
+                                      GNUNET_CRYPTO_UnblindedSignature *sig);
 
 
 /**
@@ -1022,7 +1025,8 @@ GNUNET_JSON_pack_unblinded_signature (const char *name,
  */
 struct GNUNET_JSON_PackSpec
 GNUNET_JSON_pack_blinded_message (const char *name,
-                                  const struct GNUNET_CRYPTO_BlindedMessage 
*msg);
+                                  const struct GNUNET_CRYPTO_BlindedMessage 
*msg
+                                  );
 
 
 /**

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]