mirror of
https://git.code.sf.net/p/flwm/flwm
synced 2025-12-12 07:16:57 -05:00
Removed warnings from g++ 4.1
This commit is contained in:
6
Frame.C
6
Frame.C
@ -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
4
Menu.C
@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user