aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-12-02 23:47:28 +0000
committerChristopher Faylor <me@cgf.cx>2003-12-02 23:47:28 +0000
commite575a697ba932896ae5f1b7263a93ef334bbf771 (patch)
tree6d8294e4f50bb8c47959abb49a3b1266d378446e
parentd47640a3d558f36d9662756ffb859ef079a2e3fd (diff)
downloadnewlib-e575a697ba932896ae5f1b7263a93ef334bbf771.zip
newlib-e575a697ba932896ae5f1b7263a93ef334bbf771.tar.gz
newlib-e575a697ba932896ae5f1b7263a93ef334bbf771.tar.bz2
* fcntl.cc (_fcntl): Silence a compiler warning.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/fcntl.cc6
2 files changed, 7 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index e7fe030..4136f9e 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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>
* pinfo.cc (pinfo::init): Use shared_name to construct the mapname.
diff --git a/winsup/cygwin/fcntl.cc b/winsup/cygwin/fcntl.cc
index 89287b6..28c669d 100644
--- a/winsup/cygwin/fcntl.cc
+++ b/winsup/cygwin/fcntl.cc
@@ -56,7 +56,7 @@ _fcntl (int fd, int cmd,...)
{
void *arg = NULL;
va_list args;
- struct __flock32 *src;
+ struct __flock32 *src = NULL;
struct __flock64 dst;
va_start (args, cmd);
@@ -64,7 +64,7 @@ _fcntl (int fd, int cmd,...)
va_end (args);
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_whence = src->l_whence;
dst.l_start = src->l_start;
@@ -79,7 +79,7 @@ _fcntl (int fd, int cmd,...)
src->l_whence = dst.l_whence;
src->l_start = dst.l_start;
src->l_len = dst.l_len;
- src->l_pid = (short)dst.l_pid;
+ src->l_pid = (short) dst.l_pid;
}
return res;
}