diff options
author | Rich Megginson <rmeggins@redhat.com> | 2007-12-08 19:17:37 +0000 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2007-12-08 19:17:37 +0000 |
commit | be7044d640d5887d6a7a8b78de21370e9b3fc8c2 (patch) | |
tree | 1ac335e09b6c3a37dc0024a456a03f4f43b9da13 /ldap/servers/slapd/tools | |
parent | 42a52a6e33873a3979de74bdbe2c056905af3d7c (diff) | |
download | ds-be7044d640d5887d6a7a8b78de21370e9b3fc8c2.tar.gz ds-be7044d640d5887d6a7a8b78de21370e9b3fc8c2.tar.xz ds-be7044d640d5887d6a7a8b78de21370e9b3fc8c2.zip |
Resolves: bug 416721
Descriptionn: fedora-ds-base build problem
Fix Description: Correct usage of va_list and vfprintf
Diffstat (limited to 'ldap/servers/slapd/tools')
-rw-r--r-- | ldap/servers/slapd/tools/dbscan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ldap/servers/slapd/tools/dbscan.c b/ldap/servers/slapd/tools/dbscan.c index a2e98125..84832310 100644 --- a/ldap/servers/slapd/tools/dbscan.c +++ b/ldap/servers/slapd/tools/dbscan.c @@ -142,6 +142,7 @@ void db_printf(char *fmt, ...) va_start(ap, fmt); vfprintf(stdout, fmt, ap); + va_end(ap); } void db_printfln(char *fmt, ...) @@ -150,7 +151,8 @@ void db_printfln(char *fmt, ...) va_start(ap, fmt); vfprintf(stdout, fmt, ap); - vfprintf(stdout, "\n", NULL); + va_end(ap); + fprintf(stdout, "\n"); } int MAX_BUFFER = 4096; |