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;
unsigned long n, extra;
int status;
void* prop;
uchar* prop;
status = XGetWindowProperty(fl_display, w,
a, 0L, 256L, False, type, &realType,
&format, &n, &extra, (uchar**)&prop);
&format, &n, &extra, &prop);
if (status != Success) return 0;
if (!prop) return 0;
if (!n) {XFree(prop); return 0;}
if (np) *np = (int)n;
return prop;
return (void*)prop;
}
int Frame::getIntProperty(Atom a, Atom type, int deflt) const {