diff options
author | Ian Lepore <ian@FreeBSD.org> | 2018-06-05 17:18:10 +0000 |
---|---|---|
committer | Ian Lepore <ian@FreeBSD.org> | 2018-06-05 17:18:10 +0000 |
commit | 3e9c7874ce6907ca8f092ac6d8d6d3fa71078e0f (patch) | |
tree | 1fbfd106307c5285167f7e703475a90869b361c3 /stand/libsa/stand.h | |
parent | 7a13eeba18bfbc2dfe3568e358ebfd038deb5544 (diff) | |
download | src-3e9c7874ce6907ca8f092ac6d8d6d3fa71078e0f.tar.gz src-3e9c7874ce6907ca8f092ac6d8d6d3fa71078e0f.zip |
Make the v*printf() functions in libsa return int instead of void.
This makes them compatible with the C standard signatures, avoiding
spurious mismatch errors in the places where the oddball requirements
of standalone code end up putting two declarations of the same function
in play.
Notes
Notes:
svn path=/head/; revision=334665
Diffstat (limited to 'stand/libsa/stand.h')
-rw-r--r-- | stand/libsa/stand.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stand/libsa/stand.h b/stand/libsa/stand.h index 2fdf8a5309e0..aba213c3b934 100644 --- a/stand/libsa/stand.h +++ b/stand/libsa/stand.h @@ -270,9 +270,9 @@ extern void mallocstats(void); extern int printf(const char *fmt, ...) __printflike(1, 2); extern int sprintf(char *buf, const char *cfmt, ...) __printflike(2, 3); extern int snprintf(char *buf, size_t size, const char *cfmt, ...) __printflike(3, 4); -extern void vprintf(const char *fmt, __va_list); -extern void vsprintf(char *buf, const char *cfmt, __va_list); -extern void vsnprintf(char *buf, size_t size, const char *cfmt, __va_list); +extern int vprintf(const char *fmt, __va_list); +extern int vsprintf(char *buf, const char *cfmt, __va_list); +extern int vsnprintf(char *buf, size_t size, const char *cfmt, __va_list); extern void twiddle(u_int callerdiv); extern void twiddle_divisor(u_int globaldiv); |