sys: fix symbol redeclaration
Fixes: 27c24c7
("rpcd: sys: actually move timespec declaration")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
27c24c7c18
commit
7fec63611d
1 changed files with 2 additions and 2 deletions
4
sys.c
4
sys.c
|
@ -88,7 +88,7 @@ rpc_cgi_password_set(struct ubus_context *ctx, struct ubus_object *obj,
|
||||||
ssize_t n;
|
ssize_t n;
|
||||||
int ret;
|
int ret;
|
||||||
const char *const passwd = "/bin/passwd";
|
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,
|
blobmsg_parse(rpc_password_policy, __RPC_P_MAX, tb,
|
||||||
blob_data(msg), blob_len(msg));
|
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)
|
if (n < 0)
|
||||||
return rpc_errno_status();
|
return rpc_errno_status();
|
||||||
|
|
||||||
nanosleep(&req, NULL);
|
nanosleep(&ts, NULL);
|
||||||
|
|
||||||
n = write(fds[1], blobmsg_data(tb[RPC_P_PASSWORD]),
|
n = write(fds[1], blobmsg_data(tb[RPC_P_PASSWORD]),
|
||||||
blobmsg_data_len(tb[RPC_P_PASSWORD]) - 1);
|
blobmsg_data_len(tb[RPC_P_PASSWORD]) - 1);
|
||||||
|
|
Loading…
Reference in a new issue