[llvm-commits] CVS: llvm/tools/llee/ExecveHandler.c SysUtils.c
Misha Brukman
brukman at cs.uiuc.edu
Sat Sep 27 17:27:00 PDT 2003
Changes in directory llvm/tools/llee:
ExecveHandler.c updated: 1.2 -> 1.3
SysUtils.c updated: 1.2 -> 1.3
---
Log message:
Squelch warnings.
---
Diffs of the changes:
Index: llvm/tools/llee/ExecveHandler.c
diff -u llvm/tools/llee/ExecveHandler.c:1.2 llvm/tools/llee/ExecveHandler.c:1.3
--- llvm/tools/llee/ExecveHandler.c:1.2 Fri Aug 15 18:31:16 2003
+++ llvm/tools/llee/ExecveHandler.c Sat Sep 27 17:26:37 2003
@@ -63,7 +63,7 @@
/* Read the header from the file */
ssize_t bytesRead = read(file, header, headerSize);
close(file);
- if (bytesRead != headerSize) return EIO;
+ if (bytesRead != (ssize_t)headerSize) return EIO;
if (!memcmp(llvmHeader, header, headerSize)) {
/*
* This is a bytecode file, so execute the JIT with the program and
Index: llvm/tools/llee/SysUtils.c
diff -u llvm/tools/llee/SysUtils.c:1.2 llvm/tools/llee/SysUtils.c:1.3
--- llvm/tools/llee/SysUtils.c:1.2 Fri Aug 15 18:31:16 2003
+++ llvm/tools/llee/SysUtils.c Sat Sep 27 17:26:37 2003
@@ -42,7 +42,7 @@
char *FindExecutable(const char *ExeName) {
/* Try to find the executable in the path */
const char *PathStr = getenv("PATH");
- if (PathStr == 0) return "";
+ if (PathStr == 0) return 0;
/* Now we have a colon separated list of directories to search, try them. */
unsigned PathLen = strlen(PathStr);
@@ -51,7 +51,7 @@
const char *Colon = strchr(PathStr, ':');
/* Check to see if this first directory contains the executable... */
- unsigned DirLen = Colon ? (Colon-PathStr) : strlen(PathStr);
+ unsigned DirLen = Colon ? (unsigned)(Colon-PathStr) : strlen(PathStr);
char *FilePath = alloca(sizeof(char) * (DirLen+1+strlen(ExeName)+1));
unsigned i, e;
for (i = 0; i != DirLen; ++i)
More information about the llvm-commits
mailing list