* sysv_shm.cc (kern_shmat): Avoid compiler warning.
This commit is contained in:
parent
79de498006
commit
e55ad3ece0
|
@ -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>
|
2004-09-21 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* sysv_shm.cc (vm_object_reference): remove Cygwin specific define.
|
* sysv_shm.cc (vm_object_reference): remove Cygwin specific define.
|
||||||
|
|
|
@ -334,11 +334,15 @@ kern_shmat(struct thread *td, int shmid, const void *shmaddr, int shmflg)
|
||||||
int i, flags;
|
int i, flags;
|
||||||
struct shmid_ds *shmseg;
|
struct shmid_ds *shmseg;
|
||||||
struct shmmap_state *shmmap_s = NULL;
|
struct shmmap_state *shmmap_s = NULL;
|
||||||
|
#ifndef __CYGWIN__
|
||||||
struct shm_handle *shm_handle;
|
struct shm_handle *shm_handle;
|
||||||
|
#endif
|
||||||
vm_offset_t attach_va;
|
vm_offset_t attach_va;
|
||||||
vm_prot_t prot;
|
vm_prot_t prot;
|
||||||
vm_size_t size;
|
vm_size_t size;
|
||||||
|
#ifndef __CYGWIN__
|
||||||
int rv;
|
int rv;
|
||||||
|
#endif
|
||||||
int error = 0;
|
int error = 0;
|
||||||
|
|
||||||
if (!jail_sysvipc_allowed && jailed(td->td_ucred))
|
if (!jail_sysvipc_allowed && jailed(td->td_ucred))
|
||||||
|
|
Loading…
Reference in New Issue