summaryrefslogtreecommitdiff
path: root/lib/dup2.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-09-20 03:16:18 +0200
committerBruno Haible <bruno@clisp.org>2011-09-20 03:16:18 +0200
commitcbf58f79a5541f258ec5e3b1e42c5f5579fce579 (patch)
tree8adda9e4dddb911b4a8b1b4ace40d04dd9ea692f /lib/dup2.c
parentdaf9ac83292b9ca2e080693b264d96969276769b (diff)
downloadgnulib-cbf58f79a5541f258ec5e3b1e42c5f5579fce579.tar.gz
msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
* lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a do...while(0). * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL. Suggested by Paul Eggert.
Diffstat (limited to 'lib/dup2.c')
-rw-r--r--lib/dup2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dup2.c b/lib/dup2.c
index 09ae49fb3f..234bdfe50b 100644
--- a/lib/dup2.c
+++ b/lib/dup2.c
@@ -57,7 +57,7 @@ rpl_dup2 (int fd, int desired_fd)
{
handle = INVALID_HANDLE_VALUE;
}
- DONE_MSVC_INVAL
+ DONE_MSVC_INVAL;
if (handle == INVALID_HANDLE_VALUE)
{
@@ -88,7 +88,7 @@ rpl_dup2 (int fd, int desired_fd)
result = -1;
errno = EBADF;
}
- DONE_MSVC_INVAL
+ DONE_MSVC_INVAL;
# ifdef __linux__
/* Correct a Linux return value.