diff --git a/configure b/configure index adf11972bc50c4476f7b80d835c3f9f6dab7dd79..f7613c1ea9e8df6a0c90585938e4a092aca94c2c 100755 --- a/configure +++ b/configure @@ -6089,6 +6089,9 @@ enable_dir watchsyscall enable_dir p1 enable_dir inferfn enable_dir rss +enable_dir hookdynamic +enable_dir canaries +enable_dir cookbook ac_config_files="$ac_config_files Makefile" diff --git a/configure.in b/configure.in index c4573adaf0f0b5aefec4be1cca327d78dac9b536..d4a8610fa366e686fc9857b37ff6f5b7791a1d53 100644 --- a/configure.in +++ b/configure.in @@ -70,6 +70,7 @@ enable_dir inferfn enable_dir rss enable_dir hookdynamic enable_dir canaries +enable_dir cookbook AC_OUTPUT(Makefile) diff --git a/libc/include/itox.h b/libc/include/itox.h index 45bf488537a073eb8be2abcae200da6ef617a0cd..00005e1c7a56881d12cdd76a00bf5572527335ca 100644 --- a/libc/include/itox.h +++ b/libc/include/itox.h @@ -1,7 +1,8 @@ #ifndef itox_h #define itox_h -char* itox(int i, char b[]); +//char* itox(int i, char b[]); +void itox(unsigned long long i, char *s); #endif diff --git a/libc/src/itoa.c b/libc/src/itoa.c index ee69424bd4d0ff5af3d0e2dc5bacc8c3aa1e7702..303f041016d85a2ee47a7d6cd3d49c8d7f0deea0 100644 --- a/libc/src/itoa.c +++ b/libc/src/itoa.c @@ -3,15 +3,15 @@ #include <stdint.h> /* convert integer i into string of hex digits at string s. */ -void itox(uintptr_t i, char *s) +void itox(unsigned long long i, char *s) { unsigned char n; /* 4-byte integers print 8 chars, 8-byte integers print 16 bytes */ - s += 2*sizeof(void*); + s += 2*sizeof(unsigned long long); *s = '\0'; - for (n = 2*sizeof(void*); n != 0; --n) { + for (n = 2*sizeof(unsigned long long); n != 0; --n) { *--s = "0123456789ABCDEF"[i & 0x0F]; i >>= 4; }