Module Name:    src
Committed By:   skrll
Date:           Sat Mar  8 16:55:38 UTC 2014

Modified Files:
        src/sys/arch/acorn26/acorn26: db_interface.c

Log Message:
Make db_validate_address compile under 4.8


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/acorn26/acorn26/db_interface.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/acorn26/acorn26/db_interface.c
diff -u src/sys/arch/acorn26/acorn26/db_interface.c:1.19 src/sys/arch/acorn26/acorn26/db_interface.c:1.20
--- src/sys/arch/acorn26/acorn26/db_interface.c:1.19	Sat Jan  5 15:04:00 2013
+++ src/sys/arch/acorn26/acorn26/db_interface.c	Sat Mar  8 16:55:38 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_interface.c,v 1.19 2013/01/05 15:04:00 christos Exp $	*/
+/*	$NetBSD: db_interface.c,v 1.20 2014/03/08 16:55:38 skrll Exp $	*/
 
 /* 
  * Copyright (c) 1996 Scott K. Stevens
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.19 2013/01/05 15:04:00 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.20 2014/03/08 16:55:38 skrll Exp $");
 
 #include "opt_ddb.h"
 
@@ -169,11 +169,10 @@ volatile bool db_validating, db_faulted;
 int
 db_validate_address(vm_offset_t addr)
 {
-	volatile uint8_t tmp;
 
 	db_faulted = false;
 	db_validating = true;
-	tmp = *(uint8_t *)addr;
+	(void) *(volatile uint8_t *)addr;
 	db_validating = false;
 	return db_faulted;
 }

Reply via email to