]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - client.c
sched: Use integer value for select timeout.
[paraslash.git] / client.c
index 8caf44839919fb33c1368715c528f507ebc7a5c9..24f9c61c1c505e304b590b4ad7d7bce7041e13b0 100644 (file)
--- a/client.c
+++ b/client.c
@@ -123,7 +123,7 @@ fail:
 static int execute_client_command(const char *cmd, char **result)
 {
        int ret;
-       struct sched command_sched = {.default_timeout = {.tv_sec = 1}};
+       struct sched command_sched = {.default_timeout = 1000};
        struct exec_task exec_task = {
                .result_buf = para_strdup(""),
                .result_size = 1,
@@ -624,7 +624,7 @@ int main(int argc, char *argv[])
        int ret;
 
        crypt_init();
-       sched.default_timeout.tv_sec = 1;
+       sched.default_timeout = 1000;
 
        ret = client_parse_config(argc, argv, &ct, &client_loglevel);
        if (ret < 0)