aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/client.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-08-23 23:01:32 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-08-23 23:01:32 +0200
commitb6d48ea5d51f09c6dd91a9f64f8e46bafab19a2a (patch)
tree12dcf8395e8083aebde80b262e154116febfb366 /src/client.c
parentremove redundant code (diff)
downloadcimple-b6d48ea5d51f09c6dd91a9f64f8e46bafab19a2a.tar.gz
cimple-b6d48ea5d51f09c6dd91a9f64f8e46bafab19a2a.zip
cmd -> msg
This I feel better conveys the meaning.
Diffstat (limited to '')
-rw-r--r--src/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client.c b/src/client.c
index 644cb13..0391784 100644
--- a/src/client.c
+++ b/src/client.c
@@ -1,5 +1,5 @@
#include "client.h"
-#include "cmd.h"
+#include "msg.h"
#include "net.h"
#include <unistd.h>
@@ -21,9 +21,9 @@ void client_destroy(const struct client *client)
int client_main(const struct client *client, int argc, char *argv[])
{
int result, ret = 0;
- struct cmd cmd = {argc, argv};
+ struct msg msg = {argc, argv};
- ret = cmd_send_and_wait_for_result(client->fd, &cmd, &result);
+ ret = msg_send_and_wait_for_result(client->fd, &msg, &result);
if (ret < 0)
return ret;