]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
efi: do not use 'r' as pointer name
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Dec 2022 10:17:07 +0000 (11:17 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Dec 2022 14:16:33 +0000 (15:16 +0100)
'r' should only be used as in 'int r'.

src/boot/efi/util.h

index 699f1a2c7cf6ae5203b25a29bb4c918686ad37b6..cc750d7cca3ff6c2a044e445eb477e97832f82b0 100644 (file)
@@ -84,12 +84,12 @@ static inline void *xmalloc_multiply(size_t size, size_t n) {
 /* Use malloc attribute as this never returns p like userspace realloc. */
 _malloc_ _alloc_(3) _returns_nonnull_ _warn_unused_result_
 static inline void *xrealloc(void *p, size_t old_size, size_t new_size) {
-        void *r = xmalloc(new_size);
+        void *t = xmalloc(new_size);
         new_size = MIN(old_size, new_size);
         if (new_size > 0)
-                memcpy(r, p, new_size);
+                memcpy(t, p, new_size);
         free(p);
-        return r;
+        return t;
 }
 
 #define xpool_print(fmt, ...) ((char16_t *) ASSERT_SE_PTR(PoolPrint((fmt), ##__VA_ARGS__)))