aboutsummaryrefslogtreecommitdiffstats
path: root/src/sat.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2016-01-01 08:39:41 +0100
committerMattias Andrée <maandree@member.fsf.org>2016-01-01 08:39:51 +0100
commit04a2637f23a9d2b1aee83e364450a02377b44cbc (patch)
tree99716598a1990112e2476abd5f0aec2c8440ee6d /src/sat.c
parentfix the last bit (diff)
downloadsat-04a2637f23a9d2b1aee83e364450a02377b44cbc.tar.gz
sat-04a2637f23a9d2b1aee83e364450a02377b44cbc.tar.bz2
sat-04a2637f23a9d2b1aee83e364450a02377b44cbc.tar.xz
small improvements and cleanup
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/sat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sat.c b/src/sat.c
index e3e1e84..5431208 100644
--- a/src/sat.c
+++ b/src/sat.c
@@ -1,5 +1,5 @@
/**
- * Copyright © 2015 Mattias Andrée <maandree@member.fsf.org>
+ * Copyright © 2015, 2016 Mattias Andrée <maandree@member.fsf.org>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -88,11 +88,11 @@ retry:
/* Construct message to send to the daemon. */
n = measure_array(argv) + size + measure_array(envp);
- t (!(msg = malloc(n + sizeof(int) + sizeof(clk) + sizeof(ts))));
+ t (!(msg = malloc(n + sizeof(argc) + sizeof(clk) + sizeof(ts))));
store_array(getcwd(store_array(msg, argv), size) + size, envp);
- memcpy(msg + n, &argc, sizeof(int)), n += sizeof(int);
- memcpy(msg + n, &clk, sizeof(clk)), n += sizeof(clk);
- memcpy(msg + n, &ts, sizeof(ts)), n += sizeof(ts);
+ memcpy(msg + n, &argc, sizeof(argc)), n += sizeof(argc);
+ memcpy(msg + n, &clk, sizeof(clk)), n += sizeof(clk);
+ memcpy(msg + n, &ts, sizeof(ts)), n += sizeof(ts);
/* Send job to daemon, start daemon if necessary. */
SEND(SAT_QUEUE, n, msg);