summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-26 15:55:12 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-04 20:28:02 -0700
commit0f4f6462597841e5f8470571d56cfda61144ee8f (patch)
tree2527ef3353420f5cd7c3faf84c4924a71c5f4479
parent8ee3b3f73a6c14c4326435fea7136c09fe2822d1 (diff)
Mark format string argument to dsprintf as const char *
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--list.c2
-rw-r--r--list.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/list.c b/list.c
index a10b5ed..2854e18 100644
--- a/list.c
+++ b/list.c
@@ -59,7 +59,7 @@ listAdjoin(char *car, ListPtr cdr)
}
char *
-dsprintf(char *f, ...)
+dsprintf(const char *f, ...)
{
va_list args;
char *string;
diff --git a/list.h b/list.h
index 686fd9b..7403bc0 100644
--- a/list.h
+++ b/list.h
@@ -25,7 +25,7 @@
#include <X11/Xfuncproto.h> /* for _X_ATTRIBUTE_PRINTF */
-char *dsprintf(char *f, ...) _X_ATTRIBUTE_PRINTF(1,2);
+char *dsprintf(const char *f, ...) _X_ATTRIBUTE_PRINTF(1,2);
typedef struct _List {
char *value;