logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0009-Use-__VA_ARGS__-for-variadic-macros-arguments.patch (736B)


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