* fcntl.cc (_fcntl): Silence a compiler warning.
This commit is contained in:
parent
d47640a3d5
commit
e575a697ba
|
@ -1,3 +1,7 @@
|
||||||
|
2003-12-02 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* fcntl.cc (_fcntl): Silence a compiler warning.
|
||||||
|
|
||||||
2003-12-02 Pierre Humblet <pierre.humblet@ieee.org>
|
2003-12-02 Pierre Humblet <pierre.humblet@ieee.org>
|
||||||
|
|
||||||
* pinfo.cc (pinfo::init): Use shared_name to construct the mapname.
|
* pinfo.cc (pinfo::init): Use shared_name to construct the mapname.
|
||||||
|
|
|
@ -56,7 +56,7 @@ _fcntl (int fd, int cmd,...)
|
||||||
{
|
{
|
||||||
void *arg = NULL;
|
void *arg = NULL;
|
||||||
va_list args;
|
va_list args;
|
||||||
struct __flock32 *src;
|
struct __flock32 *src = NULL;
|
||||||
struct __flock64 dst;
|
struct __flock64 dst;
|
||||||
|
|
||||||
va_start (args, cmd);
|
va_start (args, cmd);
|
||||||
|
@ -64,7 +64,7 @@ _fcntl (int fd, int cmd,...)
|
||||||
va_end (args);
|
va_end (args);
|
||||||
if (cmd == F_GETLK || cmd == F_SETLK || cmd == F_SETLKW)
|
if (cmd == F_GETLK || cmd == F_SETLK || cmd == F_SETLKW)
|
||||||
{
|
{
|
||||||
src = (struct __flock32 *)arg;
|
src = (struct __flock32 *) arg;
|
||||||
dst.l_type = src->l_type;
|
dst.l_type = src->l_type;
|
||||||
dst.l_whence = src->l_whence;
|
dst.l_whence = src->l_whence;
|
||||||
dst.l_start = src->l_start;
|
dst.l_start = src->l_start;
|
||||||
|
@ -79,7 +79,7 @@ _fcntl (int fd, int cmd,...)
|
||||||
src->l_whence = dst.l_whence;
|
src->l_whence = dst.l_whence;
|
||||||
src->l_start = dst.l_start;
|
src->l_start = dst.l_start;
|
||||||
src->l_len = dst.l_len;
|
src->l_len = dst.l_len;
|
||||||
src->l_pid = (short)dst.l_pid;
|
src->l_pid = (short) dst.l_pid;
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue