teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0181-util-introduce-memcmp_safe.patch

4bff0a
From 465534a9417b7d7cf74f686da674b3f74d77ac58 Mon Sep 17 00:00:00 2001
4bff0a
From: Yu Watanabe <watanabe.yu+github@gmail.com>
4bff0a
Date: Wed, 8 Aug 2018 16:22:55 +0900
4bff0a
Subject: [PATCH] util: introduce memcmp_safe()
4bff0a
4bff0a
(cherry picked from commit f30faf854b9bf01da294547a1bc3660506d750db)
4bff0a
4bff0a
Resolves: #1683319
4bff0a
---
4bff0a
 src/basic/util.h | 4 +---
4bff0a
 1 file changed, 1 insertion(+), 3 deletions(-)
4bff0a
4bff0a
diff --git a/src/basic/util.h b/src/basic/util.h
4bff0a
index 4659a21b06..c70467f98c 100644
4bff0a
--- a/src/basic/util.h
4bff0a
+++ b/src/basic/util.h
4bff0a
@@ -113,9 +113,7 @@ static inline void qsort_r_safe(void *base, size_t nmemb, size_t size, int (*com
4bff0a
         qsort_r(base, nmemb, size, compar, userdata);
4bff0a
 }
4bff0a
 
4bff0a
-/**
4bff0a
- * Normal memcpy requires src to be nonnull. We do nothing if n is 0.
4bff0a
- */
4bff0a
+/* Normal memcpy requires src to be nonnull. We do nothing if n is 0. */
4bff0a
 static inline void memcpy_safe(void *dst, const void *src, size_t n) {
4bff0a
         if (n == 0)
4bff0a
                 return;