diff options
author | pjd <pjd@FreeBSD.org> | 2006-09-30 14:35:37 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-09-30 14:35:37 +0000 |
commit | 59b61d5e58bd9b862fa7c64115efd0e04d5c177b (patch) | |
tree | aec2b2073b227d0644174651f3ae7f5302d6a300 | |
parent | 6c4a1e181cd2ff46af8053ef5d90daf72382308d (diff) | |
download | FreeBSD-src-59b61d5e58bd9b862fa7c64115efd0e04d5c177b.zip FreeBSD-src-59b61d5e58bd9b862fa7c64115efd0e04d5c177b.tar.gz |
Add __printflike() attribute to various functions.
-rw-r--r-- | sbin/geom/misc/subr.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/geom/misc/subr.h b/sbin/geom/misc/subr.h index 61f5ab0..865e855 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_ */ |