Exec now uses ConstString
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
FILE *XmdVaPipedExecPath (const String file, pid_t *child, String mode, ...) {
|
||||
FILE *XmdVaPipedExecPath (ConstString file, pid_t *child, String mode, ...) {
|
||||
XmdBuffer *buffer = XmdBufferNew(String);
|
||||
va_list argList;
|
||||
va_start(argList, mode);
|
||||
@@ -26,7 +26,10 @@ FILE *XmdVaPipedExecPath (const String file, pid_t *child, String mode, ...) {
|
||||
return pipe;
|
||||
}
|
||||
|
||||
FILE *XmdPipedExecPath (const String file, pid_t *child, String mode, String const argv[]) {
|
||||
FILE *XmdPipedExecPath (
|
||||
ConstString file, pid_t *child, String mode,
|
||||
const String argv[]
|
||||
) {
|
||||
int pipes[2];
|
||||
pipe(pipes);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user