diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-26 15:55:12 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-04 20:28:02 -0700 |
commit | 0f4f6462597841e5f8470571d56cfda61144ee8f (patch) | |
tree | 2527ef3353420f5cd7c3faf84c4924a71c5f4479 | |
parent | 8ee3b3f73a6c14c4326435fea7136c09fe2822d1 (diff) |
Mark format string argument to dsprintf as const char *
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | list.c | 2 | ||||
-rw-r--r-- | list.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -59,7 +59,7 @@ listAdjoin(char *car, ListPtr cdr) } char * -dsprintf(char *f, ...) +dsprintf(const char *f, ...) { va_list args; char *string; @@ -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; |