aboutsummaryrefslogtreecommitdiff
path: root/portable/asprintf.c
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2010-02-09 15:32:54 -0800
committerRuss Allbery <rra@stanford.edu>2010-02-09 15:32:54 -0800
commitccf1cd7efa90bdcbe834e0d4ca144289cca97fd7 (patch)
treea3f791ef91920da7a1857e2e95bab3ecdf9aa4a7 /portable/asprintf.c
parentce6c27ef04783e21baf44549ff9e361e0c0f148e (diff)
Update portability code to rra-c-util 3.0
Add replacements for mkstemp and setenv, since we now use them when obtaining credentials in the client. Fix the bool type with Sun Studio 12 on Solaris 10.
Diffstat (limited to 'portable/asprintf.c')
-rw-r--r--portable/asprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/portable/asprintf.c b/portable/asprintf.c
index 9451795..4219a19 100644
--- a/portable/asprintf.c
+++ b/portable/asprintf.c
@@ -18,7 +18,8 @@
#if TESTING
# define asprintf test_asprintf
# define vasprintf test_vasprintf
-int test_asprintf(char **, const char *, ...);
+int test_asprintf(char **, const char *, ...)
+ __attribute__((__format__(printf, 2, 3)));
int test_vasprintf(char **, const char *, va_list);
#endif