dtstyle: resolve 30 compiler warnings.

This commit is contained in:
Peter Howkins
2015-01-05 16:07:49 +00:00
parent 2863b839e5
commit 466b8d0df5
15 changed files with 72 additions and 31 deletions

View File

@@ -43,6 +43,7 @@
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <X11/Xlib.h>
@@ -482,7 +483,10 @@ WriteOutPalette(
pCurrentPalette->color[i].bg.red,
pCurrentPalette->color[i].bg.green,
pCurrentPalette->color[i].bg.blue);
write(fd, temp, strlen(temp));
if(-1 == write(fd, temp, strlen(temp))) {
perror(strerror(errno));
return(-1);
}
}
XtFree(temp);
}