diff options
author | Werner Koch <wk@gnupg.org> | 2016-11-12 20:00:06 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-11-12 20:00:33 +0100 |
commit | c26117b2eda43258d4e3e8fd3ed602b2eaaa51f4 (patch) | |
tree | 1bdc39a8cfd99870a62d27a04e99d18b9b562f7d | |
parent | 40e5ff0a0084c0d9521b401db4f38885bfdae233 (diff) | |
download | libgpg-error-c26117b2eda43258d4e3e8fd3ed602b2eaaa51f4.tar.gz |
estream: Minor portability fix.
--
A trailing comma in an enum is not groked by all compilers.
Binary operation should have their own parentheses to make it clear
that a binary operator was meant.
Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r-- | src/estream.c | 6 | ||||
-rw-r--r-- | src/gpgrt-int.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/estream.c b/src/estream.c index c46bc61..58d5d03 100644 --- a/src/estream.c +++ b/src/estream.c @@ -2087,7 +2087,7 @@ es_create (estream_t *stream, void *cookie, es_syshd_t *syshd, stream_new->intern = stream_internal_new; #if _WIN32 - if (xmode & X_POLLABLE) + if ((xmode & X_POLLABLE)) { void *new_cookie; @@ -3243,7 +3243,7 @@ do_fdopen (int filedes, const char *mode, int no_close, int with_locked_list) err = parse_mode (mode, &modeflags, &xmode, NULL); if (err) goto out; - if (xmode & X_SYSOPEN) + if ((xmode & X_SYSOPEN)) { /* Not allowed for fdopen. */ _set_errno (EINVAL); @@ -3307,7 +3307,7 @@ do_fpopen (FILE *fp, const char *mode, int no_close, int with_locked_list) err = parse_mode (mode, &modeflags, &xmode, &cmode); if (err) goto out; - if (xmode & X_SYSOPEN) + if ((xmode & X_SYSOPEN)) { /* Not allowed for fpopen. */ _set_errno (EINVAL); diff --git a/src/gpgrt-int.h b/src/gpgrt-int.h index a6e6036..fba2585 100644 --- a/src/gpgrt-int.h +++ b/src/gpgrt-int.h @@ -82,7 +82,7 @@ typedef enum BACKEND_W32, BACKEND_FP, BACKEND_USER, - BACKEND_W32_POLLABLE, + BACKEND_W32_POLLABLE } gpgrt_stream_backend_kind_t; |