summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-03 03:24:23 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-03 03:24:23 +0000
commit43059acb95837fce3c8fdf5fc71b96c403e61939 (patch)
tree20908cccfc34f5e4421b252ce698a3cbf534bc44 /source3/lib
parenta63aa62bdd3ef4545cfd68123aa3e7363dcec2e2 (diff)
downloadsamba-43059acb95837fce3c8fdf5fc71b96c403e61939.tar.gz
samba-43059acb95837fce3c8fdf5fc71b96c403e61939.tar.bz2
samba-43059acb95837fce3c8fdf5fc71b96c403e61939.zip
Merge from HEAD - add PRINTF_ATTRIBUTE to a few more functions.
(This used to be commit 9e5297131cc53d7161aa74566f147b98e1c27aaa)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dprintf.c2
-rw-r--r--source3/lib/system.c2
-rw-r--r--source3/lib/util.c2
-rw-r--r--source3/lib/util_str.c4
-rw-r--r--source3/lib/xfile.c4
5 files changed, 7 insertions, 7 deletions
diff --git a/source3/lib/dprintf.c b/source3/lib/dprintf.c
index f0f09e199d..70387bbd61 100644
--- a/source3/lib/dprintf.c
+++ b/source3/lib/dprintf.c
@@ -31,7 +31,7 @@
#include "includes.h"
-int d_vfprintf(FILE *f, const char *format, va_list ap)
+ int d_vfprintf(FILE *f, const char *format, va_list ap)
{
char *p, *p2;
int ret, maxlen, clen;
diff --git a/source3/lib/system.c b/source3/lib/system.c
index 873b8737d5..18cccda935 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -1233,7 +1233,7 @@ int sys_dup2(int oldfd, int newfd)
Wrapper for Admin Logs.
****************************************************************************/
-void sys_adminlog(int priority, char *format_str, ...)
+ void sys_adminlog(int priority, const char *format_str, ...)
{
va_list ap;
int ret;
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 0adfe34032..b0714dcbeb 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2080,7 +2080,7 @@ char *smb_xstrndup(const char *s, size_t n)
vasprintf that aborts on malloc fail
*/
-int smb_xvasprintf(char **ptr, const char *format, va_list ap)
+ int smb_xvasprintf(char **ptr, const char *format, va_list ap)
{
int n;
va_list ap2;
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index f3fa89b05f..5a1f159bdb 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -1116,7 +1116,7 @@ char *binary_string(char *buf, int len)
Just a typesafety wrapper for snprintf into a pstring.
********************************************************************/
-int pstr_sprintf(pstring s, const char *fmt, ...)
+ int pstr_sprintf(pstring s, const char *fmt, ...)
{
va_list ap;
int ret;
@@ -1131,7 +1131,7 @@ int pstr_sprintf(pstring s, const char *fmt, ...)
Just a typesafety wrapper for snprintf into a fstring.
********************************************************************/
-int fstr_sprintf(fstring s, const char *fmt, ...)
+ int fstr_sprintf(fstring s, const char *fmt, ...)
{
va_list ap;
int ret;
diff --git a/source3/lib/xfile.c b/source3/lib/xfile.c
index 7621712e9a..57f3e27638 100644
--- a/source3/lib/xfile.c
+++ b/source3/lib/xfile.c
@@ -184,7 +184,7 @@ int x_fwrite(const void *p, size_t size, size_t nmemb, XFILE *f)
}
/* thank goodness for asprintf() */
-int x_vfprintf(XFILE *f, const char *format, va_list ap)
+ int x_vfprintf(XFILE *f, const char *format, va_list ap)
{
char *p;
int len, ret;
@@ -199,7 +199,7 @@ int x_vfprintf(XFILE *f, const char *format, va_list ap)
return ret;
}
-int x_fprintf(XFILE *f, const char *format, ...)
+ int x_fprintf(XFILE *f, const char *format, ...)
{
va_list ap;
int ret;