* sysv_shm.cc (kern_shmat): Avoid compiler warning.

This commit is contained in:
Corinna Vinschen 2004-09-23 14:16:54 +00:00
parent 79de498006
commit e55ad3ece0
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-09-23 Corinna Vinschen <corinna@vinschen.de>
* sysv_shm.cc (kern_shmat): Avoid compiler warning.
2004-09-21 Corinna Vinschen <corinna@vinschen.de>
* sysv_shm.cc (vm_object_reference): remove Cygwin specific define.

View File

@ -334,11 +334,15 @@ kern_shmat(struct thread *td, int shmid, const void *shmaddr, int shmflg)
int i, flags;
struct shmid_ds *shmseg;
struct shmmap_state *shmmap_s = NULL;
#ifndef __CYGWIN__
struct shm_handle *shm_handle;
#endif
vm_offset_t attach_va;
vm_prot_t prot;
vm_size_t size;
#ifndef __CYGWIN__
int rv;
#endif
int error = 0;
if (!jail_sysvipc_allowed && jailed(td->td_ucred))