http://ftp.ksu.edu.tw/FTP/FreeBSD/distfiles/xscreensaver-4.20.tar.gz
[xscreensaver] / utils / xshm.c
index 5e23456f7900b6c6a03e4c086c8db8d6631c2e02..a05601503663f9473927d9a20b791f52ecf00846 100644 (file)
@@ -21,9 +21,7 @@
    needed, anyway.)
 
    If you don't have man pages for this extension, see
-   http://www.physik.uni-regensburg.de/~scs22156/sofie-0.2/mit-shm.html
-   or in the R6 sources as "xc/doc/specs/Xext/mit-shm.ms", for example,
-   ftp://ftp.x.org/pub/R6.4/xc/doc/specs/Xext/mit-shm.ms
+   http://www.x.org/X11R6.8.1/docs/Xext/
 
    (This document seems not to ever remain available on the web in one place
    for very long; you can search for it by the title, "MIT-SHM -- The MIT
@@ -215,7 +213,8 @@ destroy_xshm_image (Display *dpy, XImage *image, XShmSegmentInfo *shm_info)
   if (status != 0)
     {
       char buf[1024];
-      sprintf (buf, "%s: shmdt(0x%x) failed", progname, shm_info->shmaddr);
+      sprintf (buf, "%s: shmdt(0x%lx) failed", progname,
+               (unsigned long) shm_info->shmaddr);
       perror(buf);
     }
 #ifdef DEBUG