aboutsummaryrefslogtreecommitdiffstats
path: root/src/satq.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2016-01-01 22:34:34 +0100
committerMattias Andrée <maandree@member.fsf.org>2016-01-01 22:34:34 +0100
commit4cba520a67e615b43dc22994670a904daf8643ae (patch)
tree6649c99fa94d8b7842a8ca7df7478ccf722d4c67 /src/satq.c
parentremove satd-rm and satd-r and let satrm and satr do everything (not done yet) (diff)
downloadsat-4cba520a67e615b43dc22994670a904daf8643ae.tar.gz
sat-4cba520a67e615b43dc22994670a904daf8643ae.tar.bz2
sat-4cba520a67e615b43dc22994670a904daf8643ae.tar.xz
massive simpliciation and small bug fixes (not tested yet)
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/satq.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/satq.c b/src/satq.c
index c097bfd..d11f0bf 100644
--- a/src/satq.c
+++ b/src/satq.c
@@ -19,7 +19,7 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
-#include "daemon.h"
+#include "common.h"
#include <stdarg.h>
@@ -223,9 +223,7 @@ print_job(struct job *job)
ARRAY(envp + 1); t (print("\n\n", NULL));
done:
- saved_errno = errno;
- free(qstr), free(args), free(argv), free(wdir), free(envp);
- errno = saved_errno;
+ S(free(qstr), free(args), free(argv), free(wdir), free(envp));
return rc;
fail:
rc = -1;
@@ -247,7 +245,7 @@ main(int argc, char *argv[])
{
struct job **jobs = NULL;
struct job **job;
- PROLOGUE(argc < 2, O_RDONLY, NULL);
+ PROLOGUE(argc < 2, O_RDONLY);
t (!(jobs = get_jobs()));
for (job = jobs; *job; job++)