Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136614706
D21176.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D21176.diff
View Options
Index: head/sys/kern/kern_ctf.c
===================================================================
--- head/sys/kern/kern_ctf.c
+++ head/sys/kern/kern_ctf.c
@@ -40,21 +40,7 @@
#define CTF_HDR_STRLEN_U32 8
#ifdef DDB_CTF
-static void *
-z_alloc(void *nil, u_int items, u_int size)
-{
- void *ptr;
-
- ptr = malloc(items * size, M_TEMP, M_NOWAIT);
- return ptr;
-}
-
-static void
-z_free(void *nil, void *ptr)
-{
- free(ptr, M_TEMP);
-}
-
+#include <contrib/zlib/zlib.h>
#endif
static int
@@ -269,8 +255,6 @@
/* Initialise the zlib structure. */
bzero(&zs, sizeof(zs));
- zs.zalloc = z_alloc;
- zs.zfree = z_free;
if (inflateInit(&zs) != Z_OK) {
error = EIO;
Index: head/sys/kern/link_elf.c
===================================================================
--- head/sys/kern/link_elf.c
+++ head/sys/kern/link_elf.c
@@ -67,10 +67,6 @@
#include <sys/link_elf.h>
-#ifdef DDB_CTF
-#include <sys/zlib.h>
-#endif
-
#include "linker_if.h"
#define MAXSEGS 4
Index: head/sys/kern/link_elf_obj.c
===================================================================
--- head/sys/kern/link_elf_obj.c
+++ head/sys/kern/link_elf_obj.c
@@ -62,7 +62,7 @@
#include <sys/link_elf.h>
#ifdef DDB_CTF
-#include <sys/zlib.h>
+#include <contrib/zlib/zlib.h>
#endif
#include "linker_if.h"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 19, 2:27 PM (4 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25642348
Default Alt Text
D21176.diff (1 KB)
Attached To
Mode
D21176: DDB_CTF to update zlib version 1.0.4 to 1.2.11
Attached
Detach File
Event Timeline
Log In to Comment