about summary refs log tree commit diff homepage
path: root/runtime/POSIX
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-01 22:52:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-01 22:52:06 +0000
commit5a68a3c68c8b8a474ddcbf8ebfbcea917f2d7ee2 (patch)
tree803667d6705b3240df5b6d0d39f216cf3ddf75fc /runtime/POSIX
parente07c9626f5ffeeef8fcb7cc9106efd732c79113c (diff)
downloadklee-5a68a3c68c8b8a474ddcbf8ebfbcea917f2d7ee2.tar.gz
A few type fixes for libc functions, for 64-bit.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@77822 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/POSIX')
-rw-r--r--runtime/POSIX/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/POSIX/misc.c b/runtime/POSIX/misc.c
index d0e88290..7335dee2 100644
--- a/runtime/POSIX/misc.c
+++ b/runtime/POSIX/misc.c
@@ -36,7 +36,7 @@ void __klee_init_environ(unsigned nvars,
   __klee_sym_env_var_size = var_size;  
 }
 
-static unsigned __strlen(const char *s) {
+static size_t __strlen(const char *s) {
   const char *s2 = s;
   while (*s2) ++s2;
   return s2-s;
@@ -54,7 +54,7 @@ char *getenv(const char *name) {
   if (res) {
     return klee_range(0, 2, name) ? res : 0;
   } else {
-    unsigned i, len = __strlen(name);
+    size_t i, len = __strlen(name);
 
     if (len>=MAX_SYM_ENV_SIZE) {
       /* Don't deal with strings to large to fit in our name. */