Fix a typo

svn path=/trunk/boinc/; revision=13605
This commit is contained in:
Charlie Fenton 2007-09-20 11:21:35 +00:00
parent 70cfba942d
commit afa0babf5b
1 changed files with 2 additions and 1 deletions

View File

@ -219,7 +219,8 @@ int attach_shmem(char *path, void** pp) {
struct stat sbuf; struct stat sbuf;
// Return NULL pointer if attach_shmem fails // Return NULL pointer if attach_shmem fails
*pp = 0; fd = open(path, O_RDWR); *pp = 0;
fd = open(path, O_RDWR);
if (fd < 0) return ERR_SHMGET; if (fd < 0) return ERR_SHMGET;
retval = fstat(fd, &sbuf); retval = fstat(fd, &sbuf);