X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fxscreensaver-command.c;h=6adf1fdd5e852ca6a9b9987842b88593b34ac987;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=41613c7dcbcd2f05ecc4681f98d4f7c7df7be61a;hpb=40eacb5812ef7c0e3374fb139afbb4f5bc8bbfb5;p=xscreensaver diff --git a/driver/xscreensaver-command.c b/driver/xscreensaver-command.c index 41613c7d..6adf1fdd 100644 --- a/driver/xscreensaver-command.c +++ b/driver/xscreensaver-command.c @@ -1,4 +1,4 @@ -/* xscreensaver-command, Copyright (c) 1991-2003 Jamie Zawinski +/* xscreensaver-command, Copyright (c) 1991-2013 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -23,7 +23,7 @@ # include #endif -#include /* for CARD32 */ +/* #include / * for CARD32 */ #include #include #include /* for XGetClassHint() */ @@ -31,6 +31,14 @@ #include /* only needed to get through xscreensaver.h */ + +/* You might think that to read an array of 32-bit quantities out of a + server-side property, you would pass an array of 32-bit data quantities + into XGetWindowProperty(). You would be wrong. You have to use an array + of longs, even if long is 64 bits (using 32 of each 64.) + */ +typedef long PROP32; + #include "remote.h" #include "version.h" @@ -48,11 +56,16 @@ static Atom XA_ACTIVATE, XA_DEACTIVATE, XA_CYCLE, XA_NEXT, XA_PREV; static Atom XA_RESTART, XA_PREFS, XA_THROTTLE, XA_UNTHROTTLE; static char *screensaver_version; +# ifdef __GNUC__ + __extension__ /* don't warn about "string length is greater than the + length ISO C89 compilers are required to support" in the + usage string... */ +# endif static char *usage = "\n\ usage: %s -