diff options
author | Tomas Carnecky <tom@dbservice.com> | 2009-02-04 15:22:28 +0100 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-02-05 18:27:06 -0800 |
commit | 77784ae71b6af1ec270198cfdd5f2eab1fe4a0c0 (patch) | |
tree | cfce40084f9ae4b1eb0db1e31b30d222181bae8d /Xtransint.h | |
parent | c893bc4aa7a674c6888aacc8249b3c4a8f6bf12a (diff) |
Fix "warning: format not a string literal and no format arguments"
Signed-off-by: Tomas Carnecky <tom@dbservice.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'Xtransint.h')
-rw-r--r-- | Xtransint.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Xtransint.h b/Xtransint.h index 523751e..623cdef 100644 --- a/Xtransint.h +++ b/Xtransint.h @@ -372,7 +372,7 @@ static int trans_mkdir ( int hack= 0, saveerrno=errno; \ struct timeval tp;\ gettimeofday(&tp,0); \ - ErrorF(__xtransname); \ + ErrorF("%s",__xtransname); \ ErrorF(x+hack,a,b,c); \ ErrorF("timestamp (ms): %d\n",tp.tv_sec*1000+tp.tv_usec/1000); \ errno=saveerrno; \ @@ -382,7 +382,7 @@ static int trans_mkdir ( int hack= 0, saveerrno=errno; \ struct timeval tp;\ gettimeofday(&tp,0); \ - fprintf(stderr, __xtransname); fflush(stderr); \ + fprintf(stderr, "%s", __xtransname); fflush(stderr); \ fprintf(stderr, x+hack,a,b,c); fflush(stderr); \ fprintf(stderr, "timestamp (ms): %d\n",tp.tv_sec*1000+tp.tv_usec/1000); \ fflush(stderr); \ @@ -394,14 +394,14 @@ static int trans_mkdir ( /* Use ErrorF() for the X server */ #define PRMSG(lvl,x,a,b,c) if (lvl <= XTRANSDEBUG){ \ int hack= 0, saveerrno=errno; \ - ErrorF(__xtransname); \ + ErrorF("%s",__xtransname); \ ErrorF(x+hack,a,b,c); \ errno=saveerrno; \ } else ((void)0) #else #define PRMSG(lvl,x,a,b,c) if (lvl <= XTRANSDEBUG){ \ int hack= 0, saveerrno=errno; \ - fprintf(stderr, __xtransname); fflush(stderr); \ + fprintf(stderr, "%s", __xtransname); fflush(stderr); \ fprintf(stderr, x+hack,a,b,c); fflush(stderr); \ errno=saveerrno; \ } else ((void)0) |