summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Mainz <roland.mainz@nrubsig.org>2005-01-10 18:47:55 +0000
committerRoland Mainz <roland.mainz@nrubsig.org>2005-01-10 18:47:55 +0000
commitc6b5a9431178ac7eb90ec498e6830366865d1268 (patch)
tree18f9e768668954c614ca283d8982ad0c6125c956
parenteb701e9b4481f984fdcfece181126f7424e2bf45 (diff)
//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.
-rw-r--r--Xprint/attributes.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/Xprint/attributes.c b/Xprint/attributes.c
index af834fa6d..d87185391 100644
--- a/Xprint/attributes.c
+++ b/Xprint/attributes.c
@@ -1084,34 +1084,6 @@ XpSpoolerGetServerAttributes(void)
}
/*
- * 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,
* and the "argv" style NULL-terminated vector of arguments for the command.