Files
oasis-linux-mirror/pkg/sshfs/patch/0009-Use-__VA_ARGS__-for-variadic-macros-arguments.patch
2019-11-04 17:42:19 -08:00

28 lines
736 B
Diff

From cf28dec83d8e092b00490b6892dbb4c5f0b4f2f8 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Tue, 2 Jul 2019 19:50:44 -0700
Subject: [PATCH] Use __VA_ARGS__ for variadic macros arguments
---
sshfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sshfs.c b/sshfs.c
index a7bcc87..fd7bccb 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -485,8 +485,8 @@ static struct fuse_opt workaround_opts[] = {
FUSE_OPT_END
};
-#define DEBUG(format, args...) \
- do { if (sshfs.debug) fprintf(stderr, format, args); } while(0)
+#define DEBUG(format, ...) \
+ do { if (sshfs.debug) fprintf(stderr, format, __VA_ARGS__); } while(0)
static const char *type_name(uint8_t type)
{
--
2.24.0