Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 Fix compile on clang.



details:   https://anonhg.NetBSD.org/src/rev/651070b5cda0
branches:  trunk
changeset: 337877:651070b5cda0
user:      roy <roy%NetBSD.org@localhost>
date:      Sat May 02 14:30:27 2015 +0000

description:
Fix compile on clang.

diffstat:

 sys/arch/x86/x86/intr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 996fe1422e78 -r 651070b5cda0 sys/arch/x86/x86/intr.c
--- a/sys/arch/x86/x86/intr.c   Sat May 02 14:28:30 2015 +0000
+++ b/sys/arch/x86/x86/intr.c   Sat May 02 14:30:27 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.81 2015/04/27 07:03:58 knakahara Exp $      */
+/*     $NetBSD: intr.c,v 1.82 2015/05/02 14:30:27 roy Exp $    */
 
 /*-
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -133,7 +133,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.81 2015/04/27 07:03:58 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.82 2015/05/02 14:30:27 roy Exp $");
 
 #include "opt_intrdebug.h"
 #include "opt_multiprocessor.h"
@@ -572,7 +572,7 @@
        SIMPLEQ_REMOVE(&io_interrupt_sources, isp, intrsource, is_list);
 
        /* Is this interrupt established? */
-       if (isp->is_evname != '\0')
+       if (isp->is_evname[0] != '\0')
                evcnt_detach(&isp->is_evcnt);
 
        kmem_free(isp->is_saved_evcnt,



Home | Main Index | Thread Index | Old Index