valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0194-utils-silence-the-compiler-warning.patch

572a44
From 34c5f9d3b7020312310de1ea9b6446c51b911cb3 Mon Sep 17 00:00:00 2001
572a44
From: Michal Sekletar <msekleta@redhat.com>
572a44
Date: Mon, 10 Feb 2014 15:41:47 +0100
572a44
Subject: [PATCH] utils: silence the compiler warning
572a44
572a44
---
572a44
 src/shared/util.c | 2 +-
572a44
 1 file changed, 1 insertion(+), 1 deletion(-)
572a44
572a44
diff --git a/src/shared/util.c b/src/shared/util.c
572a44
index e9b8255..2086847 100644
572a44
--- a/src/shared/util.c
572a44
+++ b/src/shared/util.c
572a44
@@ -427,7 +427,7 @@ char *split_quoted(const char *c, size_t *l, char **state) {
572a44
                 *state = (char*) e;
572a44
         }
572a44
 
572a44
-        return current;
572a44
+        return (char *) current;
572a44
 }
572a44
 
572a44
 int get_parent_of_pid(pid_t pid, pid_t *_ppid) {