logo

oasis

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

0006-Remove-semicolon-after-function-definitions.patch (1656B)


  1. From 12c947c84f95faac8d951804d097eed6bd5a2570 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Sun, 16 Jun 2019 12:39:04 -0700
  4. Subject: [PATCH] Remove semicolon after function definitions
  5. ---
  6. lib/json_print.c | 22 +++++++++++-----------
  7. 1 file changed, 11 insertions(+), 11 deletions(-)
  8. diff --git a/lib/json_print.c b/lib/json_print.c
  9. index 810d496e..97d7defe 100644
  10. --- a/lib/json_print.c
  11. +++ b/lib/json_print.c
  12. @@ -133,15 +133,15 @@ void close_json_array(enum output_type type, const char *str)
  13. } \
  14. return ret; \
  15. }
  16. -_PRINT_FUNC(int, int);
  17. -_PRINT_FUNC(s64, int64_t);
  18. -_PRINT_FUNC(hhu, unsigned char);
  19. -_PRINT_FUNC(hu, unsigned short);
  20. -_PRINT_FUNC(uint, unsigned int);
  21. -_PRINT_FUNC(u64, uint64_t);
  22. -_PRINT_FUNC(luint, unsigned long);
  23. -_PRINT_FUNC(lluint, unsigned long long);
  24. -_PRINT_FUNC(float, double);
  25. +_PRINT_FUNC(int, int)
  26. +_PRINT_FUNC(s64, int64_t)
  27. +_PRINT_FUNC(hhu, unsigned char)
  28. +_PRINT_FUNC(hu, unsigned short)
  29. +_PRINT_FUNC(uint, unsigned int)
  30. +_PRINT_FUNC(u64, uint64_t)
  31. +_PRINT_FUNC(luint, unsigned long)
  32. +_PRINT_FUNC(lluint, unsigned long long)
  33. +_PRINT_FUNC(float, double)
  34. #undef _PRINT_FUNC
  35. #define _PRINT_NAME_VALUE_FUNC(type_name, type, format_char) \
  36. @@ -153,8 +153,8 @@ _PRINT_FUNC(float, double);
  37. "%s %%"#format_char, name); \
  38. print_##type_name(PRINT_ANY, name, format, value); \
  39. }
  40. -_PRINT_NAME_VALUE_FUNC(uint, unsigned int, u);
  41. -_PRINT_NAME_VALUE_FUNC(string, const char*, s);
  42. +_PRINT_NAME_VALUE_FUNC(uint, unsigned int, u)
  43. +_PRINT_NAME_VALUE_FUNC(string, const char*, s)
  44. #undef _PRINT_NAME_VALUE_FUNC
  45. int print_color_string(enum output_type type,
  46. --
  47. 2.44.0