Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern fix build without ddb.
details: https://anonhg.NetBSD.org/src/rev/0b6cde3739af
branches: trunk
changeset: 350261:0b6cde3739af
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 08 19:49:25 2017 +0000
description:
fix build without ddb.
diffstat:
sys/kern/kern_history.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r 3ca71dc2078a -r 0b6cde3739af sys/kern/kern_history.c
--- a/sys/kern/kern_history.c Sun Jan 08 17:57:37 2017 +0000
+++ b/sys/kern/kern_history.c Sun Jan 08 19:49:25 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_history.c,v 1.11 2017/01/05 03:40:33 pgoyette Exp $ */
+/* $NetBSD: kern_history.c,v 1.12 2017/01/08 19:49:25 christos Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_history.c,v 1.11 2017/01/05 03:40:33 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_history.c,v 1.12 2017/01/08 19:49:25 christos Exp $");
#include "opt_ddb.h"
#include "opt_kernhist.h"
@@ -82,6 +82,8 @@
int sysctl_hist_node;
+static int sysctl_kernhist_helper(SYSCTLFN_PROTO);
+
#ifdef DDB
/*
@@ -94,7 +96,6 @@
static void kernhist_dump_histories(struct kern_history *[],
void (*)(const char *, ...) __printflike(1, 2));
-static int sysctl_kernhist_helper(SYSCTLFN_PROTO);
/*
* call this from ddb
@@ -380,7 +381,7 @@
struct addr_xlt *xlate_t, *xlt;
size_t bufsize, xlate_s;
size_t xlate_c;
- const char *strp;
+ const char *strp __diagused;
char *next;
int i, j;
int error;
Home |
Main Index |
Thread Index |
Old Index