teknoraver / rpms / systemd

Forked from rpms/systemd a month ago
Clone

Blame SOURCES/0111-basic-alloc-util-remove-unnecessary-parens.patch

594167
From 965a99f34a185bb3b3aa5ac0e9e5d5eb05d0fac0 Mon Sep 17 00:00:00 2001
594167
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
594167
Date: Mon, 9 May 2022 15:11:20 +0200
594167
Subject: [PATCH] basic/alloc-util: remove unnecessary parens
594167
594167
Those symbols are not macros anymore, so we can drop parens.
594167
594167
(cherry picked from commit 96d651a22bf62e63080e489cb45e82bead11aa5d)
594167
Related: #2087652
594167
---
594167
 src/basic/alloc-util.h | 4 ++--
594167
 1 file changed, 2 insertions(+), 2 deletions(-)
594167
594167
diff --git a/src/basic/alloc-util.h b/src/basic/alloc-util.h
594167
index 65d5175619..f57bcbdbcd 100644
594167
--- a/src/basic/alloc-util.h
594167
+++ b/src/basic/alloc-util.h
594167
@@ -54,8 +54,8 @@ typedef void (*free_func_t)(void *p);
594167
                 typeof(a)* _a = &(a);           \
594167
                 typeof(b)* _b = &(b);           \
594167
                 free(*_a);                      \
594167
-                (*_a) = (*_b);                  \
594167
-                (*_b) = NULL;                   \
594167
+                *_a = *_b;                      \
594167
+                *_b = NULL;                     \
594167
                 0;                              \
594167
         })
594167