* pinfo.cc (pinfo::init): Avoid a compiler warning.

This commit is contained in:
Christopher Faylor 2005-01-26 18:21:22 +00:00
parent 0f72b90637
commit 325eadaa57
2 changed files with 5 additions and 2 deletions

View File

@ -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>
* syscalls.cc (setpriority): Implement PRIO_PGRP, PRIO_USER and

View File

@ -179,7 +179,7 @@ pinfo::init (pid_t n, DWORD flag, HANDLE h0)
void *mapaddr;
bool createit = !!(flag & (PID_IN_USE | PID_EXECED));
bool created;
bool created = false;
DWORD access = FILE_MAP_READ
| (flag & (PID_IN_USE | PID_EXECED | PID_MAP_RW)
? 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 */
mapaddr = open_shared (NULL, 0, h0, 0, SH_MYSELF);
created = false;
if (h0 == INVALID_HANDLE_VALUE)
h0 = NULL;
}