projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes to improve portability (especially to OS X, Solaris, OpenBSD).
[ircu2.10.12-pk.git]
/
ircd
/
memdebug.c
diff --git
a/ircd/memdebug.c
b/ircd/memdebug.c
index 5e97813e213895356bfb3be424fa1e71d9bf8817..4650e1df7c687562b11accd8f8a12f8220d8c2be 100644
(file)
--- a/
ircd/memdebug.c
+++ b/
ircd/memdebug.c
@@
-28,7
+28,7
@@
extern int GC_find_leak;
struct MemHeader
{
struct MemHeader
{
- u
_
int32_t magic;
+ uint32_t magic;
char type[32];
char file[32];
int line;
char type[32];
char file[32];
int line;
@@
-47,7
+47,7
@@
memfrob(void *p, size_t len)
for (s = (char*)p, se = s + (len & ~3) - 4;
s <= se;
s += 4)
for (s = (char*)p, se = s + (len & ~3) - 4;
s <= se;
s += 4)
- *(u
_int32_t*)s = *(u_
int32_t*)pat;
+ *(u
int32_t*)s = *(u
int32_t*)pat;
for (se = s; se < s; s++)
*s = pat[i++];
}
for (se = s; se < s; s++)
*s = pat[i++];
}