[systemd-commits] src/shared

Zbigniew Jędrzejewski-Szmek zbyszek at kemper.freedesktop.org
Sat Feb 15 05:16:11 CET 2014


 src/shared/util.c |    2 +-
 src/shared/util.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 93b5eaec70cc323046cad69a5e17993672a6f2f7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date:   Fri Feb 14 23:04:50 2014 -0500

    Fix prototype of get_process_state

diff --git a/src/shared/util.c b/src/shared/util.c
index 6b5b074..b1a9db1 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -513,7 +513,7 @@ char *truncate_nl(char *s) {
         return s;
 }
 
-char get_process_state(pid_t pid) {
+int get_process_state(pid_t pid) {
         const char *p;
         char state;
         int r;
diff --git a/src/shared/util.h b/src/shared/util.h
index 8dede1f..fcb45b5 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -238,7 +238,7 @@ char *file_in_same_dir(const char *path, const char *filename);
 
 int rmdir_parents(const char *path, const char *stop);
 
-char get_process_state(pid_t pid);
+int get_process_state(pid_t pid);
 int get_process_comm(pid_t pid, char **name);
 int get_process_cmdline(pid_t pid, size_t max_length, bool comm_fallback, char **line);
 int get_process_exe(pid_t pid, char **name);



More information about the systemd-commits mailing list