dtscreen: Resolve (all) 11 warnigns caused by -Wall

This commit is contained in:
Peter Howkins
2012-11-16 15:57:36 +00:00
parent a67b65198d
commit b556633eca
6 changed files with 14 additions and 12 deletions

View File

@@ -112,6 +112,7 @@ nl_catd scmc_catd; /* Cat descriptor for scmc conversion */
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <errno.h>
#include <X11/Intrinsic.h> /* For Boolean */
#include <X11/Shell.h>
@@ -219,7 +220,6 @@ main(argc, argv)
{
XSetWindowAttributes xswa;
XGCValues xgcv;
XColor nullcolor;
int nitems = 0;
int window;
int i;
@@ -375,7 +375,9 @@ main(argc, argv)
Win[window].gc = XCreateGC(dsp, Win[window].w,
GCForeground | GCBackground, &xgcv);
}
nice(nicelevel);
if(-1 == nice(nicelevel)) {
fprintf(stderr, "dtscreen: failed to set nice() level '%s'\n", strerror(errno));
}
justDisplay();