Skip to content

Commit

Permalink
Fix GCC attribute syntax error
Browse files Browse the repository at this point in the history
The previous commit had incorrect syntax on GCC printf format
attributes.

Signed-off-by: Mattias Rönnblom <[email protected]>
  • Loading branch information
m-ronnblom committed Nov 28, 2024
1 parent 5cb567f commit a7f77d6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/xcm_attr.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ int xcm_attr_get_bin(struct xcm_socket *socket, const char *name,
int xcm_attr_getf(struct xcm_socket *socket, enum xcm_attr_type *type,
void *value, size_t capacity, const char *fmt, ...)
#ifndef __DOXYGEN__
__attribute__(format (printf, 5, 6))
__attribute__((format (printf, 5, 6)))
#endif
;

Expand All @@ -279,7 +279,7 @@ int xcm_attr_getf(struct xcm_socket *socket, enum xcm_attr_type *type,
int xcm_attr_getf_bool(struct xcm_socket *socket, bool *value,
const char *name_fmt, ...)
#ifndef __DOXYGEN__
__attribute__(format (printf, 3, 4))
__attribute__((format (printf, 3, 4)))
#endif
;

Expand All @@ -302,7 +302,7 @@ int xcm_attr_getf_bool(struct xcm_socket *socket, bool *value,
int xcm_attr_getf_int64(struct xcm_socket *socket, int64_t *value,
const char *name_fmt, ...)
#ifndef __DOXYGEN__
__attribute__(format (printf, 3, 4))
__attribute__((format (printf, 3, 4)))
#endif
;

Expand All @@ -325,7 +325,7 @@ int xcm_attr_getf_int64(struct xcm_socket *socket, int64_t *value,
int xcm_attr_getf_double(struct xcm_socket *socket, double *value,
const char *name_fmt, ...)
#ifndef __DOXYGEN__
__attribute__(format (printf, 3, 4))
__attribute__((format (printf, 3, 4)))
#endif
;

Expand All @@ -350,7 +350,7 @@ int xcm_attr_getf_double(struct xcm_socket *socket, double *value,
int xcm_attr_getf_str(struct xcm_socket *socket, char *value, size_t capacity,
const char *name_fmt, ...)
#ifndef __DOXYGEN__
__attribute__(format (printf, 4, 5))
__attribute__((format (printf, 4, 5)))
#endif
;

Expand All @@ -374,7 +374,7 @@ int xcm_attr_getf_str(struct xcm_socket *socket, char *value, size_t capacity,
int xcm_attr_getf_bin(struct xcm_socket *socket, void *value, size_t capacity,
const char *name_fmt, ...)
#ifndef __DOXYGEN__
__attribute__(format (printf, 4, 5))
__attribute__((format (printf, 4, 5)))
#endif
;

Expand Down

0 comments on commit a7f77d6

Please sign in to comment.