summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-04 15:50:34 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-04 15:51:39 +0200
commit7fec63611d1698795dcc10ffe1f1526a235189f8 (patch)
treefb7dc26d32ff9a450af27d06b607bc6511d837ea
parent27c24c7c186ad6522995872a9fe380dd1545af9a (diff)
downloadrpcd-7fec63611d1698795dcc10ffe1f1526a235189f8.tar.gz
sys: fix symbol redeclaration
Fixes: 27c24c7 ("rpcd: sys: actually move timespec declaration") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--sys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys.c b/sys.c
index 60ff5d6..fecf66c 100644
--- a/sys.c
+++ b/sys.c
@@ -88,7 +88,7 @@ rpc_cgi_password_set(struct ubus_context *ctx, struct ubus_object *obj,
ssize_t n;
int ret;
const char *const passwd = "/bin/passwd";
- const struct timespec req = {0, 100 * 1000 * 1000};
+ const struct timespec ts = {0, 100 * 1000 * 1000};
blobmsg_parse(rpc_password_policy, __RPC_P_MAX, tb,
blob_data(msg), blob_len(msg));
@@ -146,7 +146,7 @@ rpc_cgi_password_set(struct ubus_context *ctx, struct ubus_object *obj,
if (n < 0)
return rpc_errno_status();
- nanosleep(&req, NULL);
+ nanosleep(&ts, NULL);
n = write(fds[1], blobmsg_data(tb[RPC_P_PASSWORD]),
blobmsg_data_len(tb[RPC_P_PASSWORD]) - 1);