Oops, fix up my previous commit properly.
authorSascha Wildner <saw@online.de>
Tue, 23 Jan 2018 10:40:29 +0000 (11:40 +0100)
committerSascha Wildner <saw@online.de>
Tue, 23 Jan 2018 10:40:29 +0000 (11:40 +0100)
contrib/ncurses/ncurses/curses.priv.h
libexec/dma/net.c
usr.sbin/nscd/hashtable.h

index c75c8f7..d9227af 100644 (file)
@@ -1553,10 +1553,10 @@ extern NCURSES_EXPORT_VAR(SIG_ATOMIC_T) _nc_have_sigwinch;
  * tries to limp along after a failure.
  */
 #define TYPE_MALLOC(type, size, name) \
-       do {
+       do { \
            name = typeMalloc(type, size); \
            if (name == 0) \
-               _nc_err_abort(MSG_NO_MEMORY) \
+               _nc_err_abort(MSG_NO_MEMORY); \
        } while (0)
 
 #define TYPE_REALLOC(type, size, name) \
index 43b103b..d0a9ba5 100644 (file)
@@ -379,7 +379,7 @@ deliver_to_host(struct qitem *it, struct mx_hostentry *host)
                               host->host, host->addr, c, neterr); \
                        return (1); \
                } \
-       while (0)
+       while (0)
 
        /* Check first reply from remote host */
        if ((config.features & SECURETRANS) == 0 ||
index 682db86..698ee52 100644 (file)
@@ -132,7 +132,7 @@ typedef int hashtable_index_t;
                (entry)->field.capacity *= 2;                           \
                (entry)->field.values = (type *)realloc((entry)->field.values, \
                        (entry)->field.capacity * sizeof(type));        \
-       while (0)
+       while (0)
 
 #define HASHTABLE_ENTRY_CAPACITY_DECREASE(entry, field, type)          \
        (entry)->field.capacity /= 2;                                   \