From 4cba520a67e615b43dc22994670a904daf8643ae Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 1 Jan 2016 22:34:34 +0100 Subject: massive simpliciation and small bug fixes (not tested yet) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/satq.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/satq.c') 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 @@ -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++) -- cgit v1.2.3-70-g09d2