Loading

Paste #ptsp22yf1

  1. diff --git a/configure.ac b/configure.ac
  2. index b6b52ca..3888c86 100644
  3. --- a/configure.ac
  4. +++ b/configure.ac
  5. @@ -63,7 +63,7 @@ AC_ARG_ENABLE([werror],
  6.  AS_IF([test x"$enable_werror" != "xno"], [
  7.         CFLAGS="$CFLAGS -Werror"
  8.  ])
  9. -CFLAGS="$CFLAGS -Wall -Wextra -pedantic -lxdg-basedir"
  10. +CFLAGS="$CFLAGS -Wall -Wextra -pedantic -lxdg-basedir -Wpadded"
  11.  
  12.  # =====================
  13.  # Prepare all .in files
  14. diff --git a/include/cgb.h b/include/cgb.h
  15. index 373e116..9a99981 100644
  16. --- a/include/cgb.h
  17. +++ b/include/cgb.h
  18. @@ -21,17 +21,18 @@ char *url_namedcmd;
  19.  struct CGB_s;
  20.  typedef struct CGB_s CGB_t;
  21.  struct CGB_s {
  22. -       CURL *curl;
  23. -       CURLcode res;
  24.         CGBString_t url;
  25.         CGBString_t response;
  26.         CGBString_t response_log_f;
  27. -       FILE *log_response;
  28.         CGBString_t auth_user;
  29.         CGBString_t auth_pass;
  30.         CGBString_t cookiejar;
  31. +       CURL *curl;
  32. +       FILE *log_response;
  33. +       CURLcode res;
  34.         int verify_peer;
  35.         int verify_host;
  36. +       int pad1, pad2, pad3, pad4, pad5;
  37.  };
  38.  
  39.  CGB_t *CGB_new(void);
  40. diff --git a/include/cgb_string.h b/include/cgb_string.h
  41. index d2f0973..0ba8e76 100644
  42. --- a/include/cgb_string.h
  43. +++ b/include/cgb_string.h
  44. @@ -8,9 +8,10 @@
  45.  struct CBGString_s;
  46.  typedef struct CGBString_s CGBString_t;
  47.  struct CGBString_s {
  48. -       char *mem;
  49.         size_t size;
  50. +       char *mem;
  51.         unsigned int len;
  52. +       int pad;
  53.  };
  54.  
  55.  void CGBString_init(CGBString_t *cgbs);
  56.