From c26117b2eda43258d4e3e8fd3ed602b2eaaa51f4 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Sat, 12 Nov 2016 20:00:06 +0100 Subject: 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 --- src/estream.c | 6 +++--- 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; -- cgit v1.2.3