logo

oasis

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

0001-Use-__attribute__-consistently.patch (1259B)


  1. From ff921b142f8df1ec718a7d1b398821eaaa8c6aac Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Mon, 1 Jul 2019 22:52:11 -0700
  4. Subject: [PATCH] Use __attribute__ consistently
  5. ---
  6. src/common.h | 6 +++---
  7. 1 file changed, 3 insertions(+), 3 deletions(-)
  8. diff --git a/src/common.h b/src/common.h
  9. index 9a68531..2cc4559 100644
  10. --- a/src/common.h
  11. +++ b/src/common.h
  12. @@ -41,12 +41,12 @@ extern int atari_format; /* Use Atari variation of MS-DOS FS format */
  13. extern const char *program_name;
  14. void die(const char *msg, ...)
  15. - __attribute((noreturn, format(printf, 1, 2)));
  16. + __attribute__ ((noreturn, format(printf, 1, 2)));
  17. /* Displays a prinf-style message and terminates the program. */
  18. void pdie(const char *msg, ...)
  19. - __attribute((noreturn, format(printf, 1, 2)));
  20. + __attribute__ ((noreturn, format(printf, 1, 2)));
  21. /* Like die, but appends an error message according to the state of errno. */
  22. @@ -68,7 +68,7 @@ int min(int a, int b);
  23. /* Returns the smaller integer value of a and b. */
  24. int xasprintf(char **strp, const char *fmt, ...)
  25. - __attribute((format(printf, 2, 3)));
  26. + __attribute__ ((format(printf, 2, 3)));
  27. /* Runs asprintf() and terminates the program if it fails. */
  28. --
  29. 2.31.1