Removed warnings from g++ 4.1

This commit is contained in:
Bill Spitzak
2006-06-20 16:09:18 +00:00
parent 7664787676
commit abf53ac759
2 changed files with 5 additions and 5 deletions

View File

@ -1825,15 +1825,15 @@ void* getProperty(XWindow w, Atom a, Atom type, int* np) {
int format; int format;
unsigned long n, extra; unsigned long n, extra;
int status; int status;
void* prop; uchar* prop;
status = XGetWindowProperty(fl_display, w, status = XGetWindowProperty(fl_display, w,
a, 0L, 256L, False, type, &realType, a, 0L, 256L, False, type, &realType,
&format, &n, &extra, (uchar**)&prop); &format, &n, &extra, &prop);
if (status != Success) return 0; if (status != Success) return 0;
if (!prop) return 0; if (!prop) return 0;
if (!n) {XFree(prop); return 0;} if (!n) {XFree(prop); return 0;}
if (np) *np = (int)n; if (np) *np = (int)n;
return prop; return (void*)prop;
} }
int Frame::getIntProperty(Atom a, Atom type, int deflt) const { int Frame::getIntProperty(Atom a, Atom type, int deflt) const {

4
Menu.C
View File

@ -250,8 +250,8 @@ spawn_cb(Fl_Widget*, void*n)
if (fork() == 0) { if (fork() == 0) {
if (fork() == 0) { if (fork() == 0) {
close(ConnectionNumber(fl_display)); close(ConnectionNumber(fl_display));
if (name == xtermname) execlp(name, name, "-ut", 0); if (name == xtermname) execlp(name, name, "-ut", (void*)0);
else execl(name, name, 0); else execl(name, name, (void*)0);
fprintf(stderr, "flwm: can't run %s, %s\n", name, strerror(errno)); fprintf(stderr, "flwm: can't run %s, %s\n", name, strerror(errno));
XBell(fl_display, 70); XBell(fl_display, 70);
exit(1); exit(1);