summaryrefslogtreecommitdiff
path: root/pkg/sshfs/patch/0009-Use-__VA_ARGS__-for-variadic-macros-arguments.patch
blob: 4a80d2916c773ace0bf5c61f3d7737b31ca7c918 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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