diff --git a/src/confd/src/helpers.h b/src/confd/src/helpers.h index ac91c193..8baba496 100644 --- a/src/confd/src/helpers.h +++ b/src/confd/src/helpers.h @@ -3,9 +3,12 @@ #ifndef CONFD_HELPERS_H_ #define CONFD_HELPERS_H_ -FILE *popenf(const char *type, const char *cmdf, ...); +FILE *popenf(const char *type, const char *cmdf, ...) + __attribute__ ((format (printf, 2, 3))); -int writedf(int value, const char *fmt, ...); -int writesf(const char *str, const char *fmt, ...); +int writedf(int value, const char *fmt, ...) + __attribute__ ((format (printf, 2, 3))); +int writesf(const char *str, const char *fmt, ...) + __attribute__ ((format (printf, 2, 3))); #endif /* CONFD_HELPERS_H_ */ diff --git a/src/confd/src/srx_val.h b/src/confd/src/srx_val.h index b6897b09..3ff8eacc 100644 --- a/src/confd/src/srx_val.h +++ b/src/confd/src/srx_val.h @@ -11,9 +11,14 @@ int srx_set_item(sr_session_ctx_t *session, const sr_val_t *val, sr_edit_options_t opts, const char *fmt, ...) __attribute__ ((format (printf, 4, 5))); -char *srx_get_str (sr_session_ctx_t *session, const char *fmt, ...); -int srx_get_int (sr_session_ctx_t *session, int *result, sr_val_type_t type, const char *fmt, ...); -int srx_get_bool (sr_session_ctx_t *session, const char *fmt, ...); -int srx_enabled (sr_session_ctx_t *session, const char *fmt, ...); +char *srx_get_str (sr_session_ctx_t *session, const char *fmt, ...) + __attribute__ ((format (printf, 2, 3))); + +int srx_get_int (sr_session_ctx_t *session, int *result, sr_val_type_t type, const char *fmt, ...) + __attribute__ ((format (printf, 4, 5))); +int srx_get_bool (sr_session_ctx_t *session, const char *fmt, ...) + __attribute__ ((format (printf, 2, 3))); +int srx_enabled (sr_session_ctx_t *session, const char *fmt, ...) + __attribute__ ((format (printf, 2, 3))); #endif /* CONFD_SRX_VAL_H_ */