diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-01-03 02:33:48 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-01-03 02:33:48 +0100 |
commit | 96376f0df63c5df8c1380f0dd58b70d33566d48e (patch) | |
tree | 5c9eb82320f601e2f7637d36e58dd783d38a5914 /util/ipmimv.c | |
parent | 62a52f983e23e7b63b6bd5db6bd1f08a0259002a (diff) | |
parent | f85b8b834b7ff85c80503faa73f237040330087b (diff) |
Merge tag 'upstream/3.0.1'
Upstream version 3.0.1
Diffstat (limited to 'util/ipmimv.c')
-rw-r--r-- | util/ipmimv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/ipmimv.c b/util/ipmimv.c index 8962ef5..4cf995d 100644 --- a/util/ipmimv.c +++ b/util/ipmimv.c @@ -241,16 +241,16 @@ static void dbgmsg(char *pattn, ...) fflush( fpdbg ); } -int set_cloexec(fd,fdebugcmd) +int set_cloexec(int fd, int fdebugcmd) { int flags; - flags = fcntl(ipmi_fd, F_GETFD); + flags = fcntl(fd, F_GETFD); if (flags == -1) { if (fdebugcmd) printf("fcntl(get) errno = %d\n",errno); return -1; } flags |= FD_CLOEXEC; - if (fcntl(ipmi_fd, F_SETFD, flags) == -1) + if (fcntl(fd, F_SETFD, flags) == -1) { if (fdebugcmd) printf("fcntl(set) errno = %d\n",errno); return -1; |