diff options
author | agc <agc@pkgsrc.org> | 2002-06-27 20:40:11 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2002-06-27 20:40:11 +0000 |
commit | caff418d39f16699e26f87d905473733afcb414f (patch) | |
tree | 35f117209c761169716236ba08d151877e271518 /graphics/cqcam/patches | |
parent | 1dc6f6e3041a23c6d3e918eaf4a303bacf53cbc1 (diff) | |
download | pkgsrc-caff418d39f16699e26f87d905473733afcb414f.tar.gz |
Cast away C++ compiler errors (thanks, Martin).
Diffstat (limited to 'graphics/cqcam/patches')
-rw-r--r-- | graphics/cqcam/patches/patch-ad | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/cqcam/patches/patch-ad b/graphics/cqcam/patches/patch-ad new file mode 100644 index 00000000000..5cdc04354f3 --- /dev/null +++ b/graphics/cqcam/patches/patch-ad @@ -0,0 +1,15 @@ +$NetBSD: patch-ad,v 1.1 2002/06/27 20:40:12 agc Exp $ + +--- xscan.C 2002/06/27 20:28:59 1.1 ++++ xscan.C 2002/06/27 20:35:04 +@@ -141,8 +141,8 @@ + perror("shmget failed:"); + return (NULL); + } +- sbuf = ximage->data = SHMInfo.shmaddr = +- shmat(SHMInfo.shmid, 0, 0); ++ (void *)sbuf = (void *) ximage->data = (void *) SHMInfo.shmaddr = ++ (void *) shmat(SHMInfo.shmid, 0, 0); + + XShmAttach(disp, &SHMInfo); + |