aboutsummaryrefslogtreecommitdiff
path: root/dummy_client.c
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-07-03 14:21:13 -0400
committerFranklin Wei <me@fwei.tk>2018-07-03 14:21:13 -0400
commitcf207a90591da839248aeffa99cb47077113a7e3 (patch)
tree56c8750fc406a7654c9a4962b74e77431a87ffdd /dummy_client.c
parent0d128a7010c9279fdf3dd51adad848135aea5cda (diff)
downloadcsaa-cf207a90591da839248aeffa99cb47077113a7e3.zip
csaa-cf207a90591da839248aeffa99cb47077113a7e3.tar.gz
csaa-cf207a90591da839248aeffa99cb47077113a7e3.tar.bz2
csaa-cf207a90591da839248aeffa99cb47077113a7e3.tar.xz
Fix warnings
Diffstat (limited to 'dummy_client.c')
-rw-r--r--dummy_client.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/dummy_client.c b/dummy_client.c
index 1720cdc..bf7c0dc 100644
--- a/dummy_client.c
+++ b/dummy_client.c
@@ -236,7 +236,6 @@ bool exec_request(int fd, const struct user_request *req,
}
case RETRIEVE_INFO:
{
- hash_t hmac;
struct version_info verinfo;
recv(fd, &verinfo, sizeof(verinfo), MSG_WAITALL);
*verinfo_out = verinfo;
@@ -276,12 +275,12 @@ struct version_info request_verinfo(int fd, uint64_t user_id,
struct version_info verinfo;
- bool rc = exec_request(fd, &req,
- NULL, 0,
- &verinfo,
- NULL,
- NULL,
- NULL);
+ exec_request(fd, &req,
+ NULL, 0,
+ &verinfo,
+ NULL,
+ NULL,
+ NULL);
return verinfo;
}
@@ -398,9 +397,6 @@ bool server_request(const char *sockpath,
}
int main(int argc, char *argv[]) {
- char buf[100];
- int fd,rc;
-
if(!parse_args(argc, argv))
{
printf("%s\n", parse_args_fail);