From 47f0238407aaf25dcb287092283ec199b2938a20 Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Thu, 10 Jul 2003 18:42:45 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=1658 --- lib/shmem.C | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/shmem.C b/lib/shmem.C index 211f455d68..d124fa5b46 100755 --- a/lib/shmem.C +++ b/lib/shmem.C @@ -2,18 +2,18 @@ // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // http://boinc.berkeley.edu/license_1.0.txt -// +// // Software distributed under the License is distributed on an "AS IS" // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the // License for the specific language governing rights and limitations -// under the License. -// -// The Original Code is the Berkeley Open Infrastructure for Network Computing. -// +// under the License. +// +// The Original Code is the Berkeley Open Infrastructure for Network Computing. +// // The Initial Developer of the Original Code is the SETI@home project. // Portions created by the SETI@home project are Copyright (C) 2002 -// University of California at Berkeley. All Rights Reserved. -// +// University of California at Berkeley. All Rights Reserved. +// // Contributor(s): // @@ -129,7 +129,7 @@ int attach_shmem(key_t key, void** pp){ return -1; } p = shmat(id, 0, 0); - if ((int)p == -1) { + if ((long)p == -1) { sprintf(buf, "attach_shmem: shmat: key: %x mem_addr: %p", (unsigned int)key, (void*)pp); perror(buf); return -1;