From c6b5a9431178ac7eb90ec498e6830366865d1268 Mon Sep 17 00:00:00 2001 From: Roland Mainz Date: Mon, 10 Jan 2005 18:47:55 +0000 Subject: [PATCH] //bugs.freedesktop.org/show_bug.cgi?id=2254) attachment #1659 (https://bugs.freedesktop.org/attachment.cgi?id=1659): Refix for gcc4.0 build failure. It seems that the |ExecCommand()| function has no consumer and can safely be removed. --- Xprint/attributes.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/Xprint/attributes.c b/Xprint/attributes.c index af834fa6d..d87185391 100644 --- a/Xprint/attributes.c +++ b/Xprint/attributes.c @@ -1083,34 +1083,6 @@ XpSpoolerGetServerAttributes(void) return db; } -/* - * ExecuteCommand takes two pointers - the command to execute, - * and the "argv" style NULL-terminated vector of arguments for the command. - * We wait for the command to terminate before continuing to ensure that - * we don't delete the job file before the spooler has made a copy. - */ -static void -ExecCommand(pCommand, argVector) - char *pCommand; - char **argVector; -{ - pid_t childPid; - int status; - - if((childPid = fork()) == 0) - { - /* return BadAlloc? */ - if (execv(pCommand, argVector) == -1) { - FatalError("unable to exec '%s'", pCommand); - } - } - else - { - (void) waitpid(childPid, &status, 0); - } - return; -} - /* * SendFileToCommand takes three character pointers - the file name, * the command to execute,