From 710d02a4037351e6f6b7d9f8e6dcbefb0119a2f5 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Sat, 30 Sep 2006 14:35:37 +0000 Subject: Add __printflike() attribute to various functions. --- sbin/geom/misc/subr.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sbin/geom/misc') diff --git a/sbin/geom/misc/subr.h b/sbin/geom/misc/subr.h index 61f5ab0e86df..865e855f09bf 100644 --- a/sbin/geom/misc/subr.h +++ b/sbin/geom/misc/subr.h @@ -41,8 +41,8 @@ int g_metadata_read(const char *name, u_char *md, size_t size, int g_metadata_store(const char *name, u_char *md, size_t size); int g_metadata_clear(const char *name, const char *magic); -void gctl_error(struct gctl_req *req, const char *error, ...); -int gctl_get_int(struct gctl_req *req, const char *pfmt, ...); -intmax_t gctl_get_intmax(struct gctl_req *req, const char *pfmt, ...); -const char *gctl_get_ascii(struct gctl_req *req, const char *pfmt, ...); +void gctl_error(struct gctl_req *req, const char *error, ...) __printflike(2, 3); +int gctl_get_int(struct gctl_req *req, const char *pfmt, ...) __printflike(2, 3); +intmax_t gctl_get_intmax(struct gctl_req *req, const char *pfmt, ...) __printflike(2, 3); +const char *gctl_get_ascii(struct gctl_req *req, const char *pfmt, ...) __printflike(2, 3); #endif /* !_SUBR_H_ */ -- cgit v1.2.3