summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-09-16 10:39:07 +0000
committerpjd <pjd@FreeBSD.org>2006-09-16 10:39:07 +0000
commitf5e129df20c2b3984d81e96cfffd8fe2979a18be (patch)
tree573376825af68a6151de2e0dc5ac78ca0660077c /sys/geom
parent7748ccf222463de662408b60a0d898405fe6d9f4 (diff)
downloadFreeBSD-src-f5e129df20c2b3984d81e96cfffd8fe2979a18be.zip
FreeBSD-src-f5e129df20c2b3984d81e96cfffd8fe2979a18be.tar.gz
Add __printflike() to gctl_error().
Approved by: phk MFC after: 1 week
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/geom.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h
index 76ebcb6..5b55624 100644
--- a/sys/geom/geom.h
+++ b/sys/geom/geom.h
@@ -348,7 +348,7 @@ void gctl_set_param_err(struct gctl_req *req, const char *param, void const *ptr
void *gctl_get_param(struct gctl_req *req, const char *param, int *len);
char const *gctl_get_asciiparam(struct gctl_req *req, const char *param);
void *gctl_get_paraml(struct gctl_req *req, const char *param, int len);
-int gctl_error(struct gctl_req *req, const char *fmt, ...);
+int gctl_error(struct gctl_req *req, const char *fmt, ...) __printflike(2, 3);
struct g_class *gctl_get_class(struct gctl_req *req, char const *arg);
struct g_geom *gctl_get_geom(struct gctl_req *req, struct g_class *mpr, char const *arg);
struct g_provider *gctl_get_provider(struct gctl_req *req, char const *arg);
OpenPOWER on IntegriCloud