Fix compilation warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16336 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-09-14 15:46:13 +00:00
parent 8c0c33984b
commit e6bd638fec

View File

@ -115,7 +115,7 @@ int executeProgram(const char *filename, char *const argv[], char *const envp[])
* Find a pointer to the *real* execve() function starting the search in the * Find a pointer to the *real* execve() function starting the search in the
* next library and forward, to avoid finding the one defined in this file. * next library and forward, to avoid finding the one defined in this file.
*/ */
char *error; const char *error;
execveTy execvePtr = (execveTy) dlsym(RTLD_NEXT, "execve"); execveTy execvePtr = (execveTy) dlsym(RTLD_NEXT, "execve");
if ((error = dlerror()) != NULL) { if ((error = dlerror()) != NULL) {
fprintf(stderr, "%s\n", error); fprintf(stderr, "%s\n", error);