diff options
Diffstat (limited to 'ports/darwin/guts')
-rw-r--r-- | ports/darwin/guts/fcntl.c | 4 | ||||
-rw-r--r-- | ports/darwin/guts/open.c | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/ports/darwin/guts/fcntl.c b/ports/darwin/guts/fcntl.c index ef42b33..1cc8258 100644 --- a/ports/darwin/guts/fcntl.c +++ b/ports/darwin/guts/fcntl.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 Wind River Systems; see + * Copyright (c) 2011, 2012 Wind River Systems; see * guts/COPYRIGHT for information. * * int fcntl(int fd, int cmd, ... { struct flock *lock }) @@ -7,8 +7,6 @@ */ int save_errno; long long flag = 0; - void *ptr = 0; - off_t off = 0; va_start(ap, cmd); flag = va_arg(ap, long long); diff --git a/ports/darwin/guts/open.c b/ports/darwin/guts/open.c index dba6800..1ed5882 100644 --- a/ports/darwin/guts/open.c +++ b/ports/darwin/guts/open.c @@ -1,12 +1,12 @@ /* - * Copyright (c) 2011 Wind River Systems; see + * Copyright (c) 2011, 2012 Wind River Systems; see * guts/COPYRIGHT for information. * * int open(const char *path, int flags, ... { int mode }) * int rc = -1; */ - struct stat buf = { 0 }; + struct stat buf = { }; int existed = 1; int save_errno; |