New utility: nscd cache dumper
DJ Delorie
dj@redhat.com
Sat Mar 14 04:28:32 GMT 2020
I'm testing this patch:
>From fdb3d38ddb2ffbb968c609cd86f2907a48490769 Mon Sep 17 00:00:00 2001
From: DJ Delorie <dj@redhat.com>
Date: Sat, 14 Mar 2020 00:21:40 -0400
Subject: Fix nscd/cachedumper.c compile errors
diff --git a/nscd/cachedumper.c b/nscd/cachedumper.c
index c5bd370918..41910e5667 100644
--- a/nscd/cachedumper.c
+++ b/nscd/cachedumper.c
@@ -26,6 +26,7 @@
#include <sys/mman.h>
#include <arpa/inet.h>
#include <getopt.h>
+#include <sys/param.h>
#include "nscd.h"
#include "dbg_log.h"
@@ -138,7 +139,7 @@ nscd_print_cache (const char *name)
struct datahead *dh = (struct datahead *) (data + here->packet);
printf ("\" (len:%d) Data %08lx\n", here->len,
- (char *) dh - (char *) the_cache);
+ (long unsigned int) ((char *) dh - (char *) the_cache));
if (debug_level > 0)
{
More information about the Libc-alpha
mailing list