summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/execlp.c
diff options
context:
space:
mode:
authorNicolas Planel <nplanel@mandriva.com>2003-10-29 16:07:11 +0000
committerNicolas Planel <nplanel@mandriva.com>2003-10-29 16:07:11 +0000
commitde47eb59bb829423b1d0f47ba13099073999b3cb (patch)
tree827f35c4666e15ec66edae7c1fa05d963324602b /mdk-stage1/dietlibc/lib/execlp.c
parent1fece42e9c460ca017fc4facad380f05163d8977 (diff)
downloaddrakx-backup-do-not-use-topic/Corpo_2_1.tar
drakx-backup-do-not-use-topic/Corpo_2_1.tar.gz
drakx-backup-do-not-use-topic/Corpo_2_1.tar.bz2
drakx-backup-do-not-use-topic/Corpo_2_1.tar.xz
drakx-backup-do-not-use-topic/Corpo_2_1.zip
Corporate Server 2.1.1 releasetopic/Corpo_2_1
Diffstat (limited to 'mdk-stage1/dietlibc/lib/execlp.c')
-rw-r--r--mdk-stage1/dietlibc/lib/execlp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/dietlibc/lib/execlp.c b/mdk-stage1/dietlibc/lib/execlp.c
index 3aea1e960..27dc0bb95 100644
--- a/mdk-stage1/dietlibc/lib/execlp.c
+++ b/mdk-stage1/dietlibc/lib/execlp.c
@@ -2,7 +2,7 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
-#include "dietstdarg.h"
+#include "dietfeatures.h"
int execlp(const char* file, const char *arg,...) {
va_list ap,bak;
@@ -15,12 +15,12 @@ int execlp(const char* file, const char *arg,...) {
++n;
va_end (ap);
if ((argv=(char **)alloca(n*sizeof(char*)))) {
- argv[0]=arg;
+ argv[0]=(char*)arg;
for (i=0; i<n; ++i)
argv[i+1]=va_arg(bak,char *);
va_end (bak);
return execvp(file,argv);
}
- __set_errno(ENOMEM);
+ errno=ENOMEM;
return -1;
}