aboutsummaryrefslogtreecommitdiffstats
path: root/src/sat.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-25 22:06:56 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-25 22:06:56 +0100
commit196abe367c46cf3c2337b4b1da8bb2c084065c7d (patch)
tree1c55433b9195b6c398ab3ab26a867d0b794ed806 /src/sat.c
parentimprove send_command (diff)
downloadsat-196abe367c46cf3c2337b4b1da8bb2c084065c7d.tar.gz
sat-196abe367c46cf3c2337b4b1da8bb2c084065c7d.tar.bz2
sat-196abe367c46cf3c2337b4b1da8bb2c084065c7d.tar.xz
satr run select jobs + satrm can remove multiple jobs
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src/sat.c')
-rw-r--r--src/sat.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/src/sat.c b/src/sat.c
index e0ede5c..6074c10 100644
--- a/src/sat.c
+++ b/src/sat.c
@@ -25,6 +25,7 @@
#include <errno.h>
#include "parse_time.h"
+#include "client.h"
@@ -48,41 +49,6 @@ usage(void)
/**
- * Return the number of bytes required to store a string array.
- *
- * @param array The string array.
- * @return The number of bytes required to store the array.
- */
-static size_t
-measure_array(char *array[])
-{
- size_t rc = 1;
- for (; *array; array++)
- rc += strlen(*array) + 1;
- return rc * sizeof(char);
-}
-
-
-/**
- * Store a string array.
- *
- * @param storage The buffer where the array is to be stored.
- * @param array The array to store.
- * @return Where in the buffer the array ends.
- */
-static char *
-store_array(char *restrict storage, char *array[])
-{
- for (; *array; array++) {
- storage = stpcpy(storage, *array);
- *storage++ = 0;
- }
- *storage++ = 0;
- return storage;
-}
-
-
-/**
* Queue a job for later execution.
*
* @param argc You guess!