diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2017-03-12 11:54:35 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2017-03-12 11:54:35 +0000 |
commit | 64c422355d52583d527e6674923fe95a90289dd4 (patch) | |
tree | da1c92c3f0451c5c885d9d5fff548be08428585c /lib/libfetch | |
parent | 971c1c421998b70e86d0d000f285c1002d2600be (diff) | |
download | src-test-64c422355d52583d527e6674923fe95a90289dd4.tar.gz src-test-64c422355d52583d527e6674923fe95a90289dd4.zip |
Add a __printflike() that would have caught the bug fixed in r314396.
Notes
Notes:
svn path=/head/; revision=315143
Diffstat (limited to 'lib/libfetch')
-rw-r--r-- | lib/libfetch/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h index e881c8834de7d..aaa22ed2790e3 100644 --- a/lib/libfetch/common.h +++ b/lib/libfetch/common.h @@ -73,7 +73,7 @@ struct iovec; void fetch_seterr(struct fetcherr *, int); void fetch_syserr(void); -void fetch_info(const char *, ...); +void fetch_info(const char *, ...) __printflike(1, 2); int fetch_default_port(const char *); int fetch_default_proxy_port(const char *); struct addrinfo *fetch_resolve(const char *, int, int); |