gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: NEWS: Remove single-use API macro GNUNET


From: gnunet
Subject: [gnunet] branch master updated: NEWS: Remove single-use API macro GNUNET_VA_ARG_ENUM
Date: Mon, 20 Nov 2023 20:31:10 +0100

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

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 26046fcc2 NEWS: Remove single-use API macro GNUNET_VA_ARG_ENUM
26046fcc2 is described below

commit 26046fcc220bcec5186e0abaabae04fd4e068ab5
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Mon Nov 20 20:30:48 2023 +0100

    NEWS: Remove single-use API macro GNUNET_VA_ARG_ENUM
---
 src/include/gnunet_common.h | 6 ------
 src/service/fs/fs_api.c     | 2 +-
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h
index 9b2b50f01..85b67377b 100644
--- a/src/include/gnunet_common.h
+++ b/src/include/gnunet_common.h
@@ -145,12 +145,6 @@ enum GNUNET_GenericReturnValue
 #endif
 #endif
 
-/**
- * wrap va_arg for enums
- */
-#define GNUNET_VA_ARG_ENUM(va, X) ((enum X) va_arg (va, int))
-
-
 /**
  * @ingroup logging
  * define #GNUNET_EXTRA_LOGGING if using this header outside the GNUnet source
diff --git a/src/service/fs/fs_api.c b/src/service/fs/fs_api.c
index 627c58004..65646c7eb 100644
--- a/src/service/fs/fs_api.c
+++ b/src/service/fs/fs_api.c
@@ -3264,7 +3264,7 @@ GNUNET_FS_start (const struct GNUNET_CONFIGURATION_Handle 
*cfg,
     GNUNET_TIME_UNIT_MINUTES; /* conservative starting point */
   va_start (ap, flags);
   while (GNUNET_FS_OPTIONS_END !=
-         (opt = GNUNET_VA_ARG_ENUM (ap, GNUNET_FS_OPTIONS)))
+         (opt = ((enum GNUNET_FS_OPTIONS) va_arg (ap, int))))
   {
     switch (opt)
     {

-- 
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]