diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-06-04 16:04:31 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-06-04 16:04:31 -0700 |
commit | e91e08d1533cc048789468885a0fb8ae214bf575 (patch) | |
tree | b306377704b188de5d5ee471145121dd1bf0a92c | |
parent | a5fc9bd6084500c64d916a657a2ea70a8a39c569 (diff) |
Mark Error() argument as const char *
Fixes many gcc warnings about discarding const from literal arguments
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xwud.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -70,7 +70,7 @@ static void Do_Direct(Display *dpy, XWDFileHeader *header, Colormap *colormap, int ncolors, XColor *colors, XImage *in_image, XImage *out_image, XVisualInfo *vinfo); static unsigned int Image_Size(XImage *image); -static void Error(char *string) _X_NORETURN; +static void Error(const char *string) _X_NORETURN; static void _swapshort(char *bp, unsigned int n); static void _swaplong(char *bp, unsigned int n); static void DumpHeader(const XWDFileHeader *header, const char *win_name); @@ -1144,7 +1144,7 @@ Image_Size(XImage *image) } static void -Error(char *string) +Error(const char *string) { fprintf(stderr, "xwud: Error => %s\n", string); if (errno != 0) { |