summaryrefslogtreecommitdiff
path: root/xwud.c
diff options
context:
space:
mode:
Diffstat (limited to 'xwud.c')
-rw-r--r--xwud.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xwud.c b/xwud.c
index 9c6808c..9e2de99 100644
--- a/xwud.c
+++ b/xwud.c
@@ -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) {