* pinfo.cc (pinfo::init): Avoid a compiler warning.
This commit is contained in:
parent
0f72b90637
commit
325eadaa57
@ -1,3 +1,7 @@
|
|||||||
|
2005-01-26 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* pinfo.cc (pinfo::init): Avoid a compiler warning.
|
||||||
|
|
||||||
2005-01-25 Corinna Vinschen <corinna@vinschen.de>
|
2005-01-25 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* syscalls.cc (setpriority): Implement PRIO_PGRP, PRIO_USER and
|
* syscalls.cc (setpriority): Implement PRIO_PGRP, PRIO_USER and
|
||||||
|
@ -179,7 +179,7 @@ pinfo::init (pid_t n, DWORD flag, HANDLE h0)
|
|||||||
|
|
||||||
void *mapaddr;
|
void *mapaddr;
|
||||||
bool createit = !!(flag & (PID_IN_USE | PID_EXECED));
|
bool createit = !!(flag & (PID_IN_USE | PID_EXECED));
|
||||||
bool created;
|
bool created = false;
|
||||||
DWORD access = FILE_MAP_READ
|
DWORD access = FILE_MAP_READ
|
||||||
| (flag & (PID_IN_USE | PID_EXECED | PID_MAP_RW)
|
| (flag & (PID_IN_USE | PID_EXECED | PID_MAP_RW)
|
||||||
? FILE_MAP_WRITE : 0);
|
? FILE_MAP_WRITE : 0);
|
||||||
@ -189,7 +189,6 @@ pinfo::init (pid_t n, DWORD flag, HANDLE h0)
|
|||||||
{
|
{
|
||||||
/* Try to enforce that myself is always created in the same place */
|
/* Try to enforce that myself is always created in the same place */
|
||||||
mapaddr = open_shared (NULL, 0, h0, 0, SH_MYSELF);
|
mapaddr = open_shared (NULL, 0, h0, 0, SH_MYSELF);
|
||||||
created = false;
|
|
||||||
if (h0 == INVALID_HANDLE_VALUE)
|
if (h0 == INVALID_HANDLE_VALUE)
|
||||||
h0 = NULL;
|
h0 = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user