summaryrefslogtreecommitdiffstats
path: root/getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'getopt.h')
-rw-r--r--getopt.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/getopt.h b/getopt.h
index fef745f..ebae451 100644
--- a/getopt.h
+++ b/getopt.h
@@ -15,16 +15,18 @@
/* setting of 'opterr' and 'opterrfd'). Note that this version of */
/* TELL() doesn't require the existence of stdio.h. */
/* """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" */
-#define TELL(S) \
- { \
- ssize_t dummy_rc; \
- if (eopterr && eopterrfd >= 0) \
- { \
- char option = (char)eoptopt; \
- dummy_rc = write(eopterrfd, (S), strlen(S)); \
- dummy_rc = write(eopterrfd, &option, 1); \
- dummy_rc = write(eopterrfd, "\n", 1); \
- } \
+#define TELL(S) \
+ { \
+ if (eopterr && eopterrfd >= 0) \
+ { \
+ char option = (char)eoptopt; \
+ if (write(eopterrfd, (S), strlen(S))) \
+ ; \
+ if (write(eopterrfd, &option, 1)) \
+ ; \
+ if (write(eopterrfd, "\n", 1)) \
+ ; \
+ } \
}
int