aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/msg.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-08-28 20:24:41 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-08-28 20:29:03 +0200
commit1c42eca6cdae99804b7020d89ae220308e4daff5 (patch)
tree62dc276ed87bf49dd186a6a3fdaff50f37d84700 /src/msg.h
parentfix Alpine builds (diff)
downloadcimple-1c42eca6cdae99804b7020d89ae220308e4daff5.tar.gz
cimple-1c42eca6cdae99804b7020d89ae220308e4daff5.zip
make proper "error" messages
Previously, the client had no way to distinguish errors from succesful calls.
Diffstat (limited to 'src/msg.h')
-rw-r--r--src/msg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/msg.h b/src/msg.h
index e60f2ce..f6b85e6 100644
--- a/src/msg.h
+++ b/src/msg.h
@@ -6,8 +6,8 @@ struct msg {
char **argv;
};
-void msg_success(struct msg *);
-void msg_error(struct msg *);
+int msg_success(struct msg *);
+int msg_error(struct msg *);
int msg_is_success(const struct msg *);
int msg_is_error(const struct msg *);