Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sysmon Pass table_id to sme_find_table().



details:   https://anonhg.NetBSD.org/src/rev/a6b676265d67
branches:  trunk
changeset: 766238:a6b676265d67
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Sun Jun 19 05:26:31 2011 +0000

description:
Pass table_id to sme_find_table().

diffstat:

 sys/dev/sysmon/sysmon_envsys_tables.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r c174bff970c9 -r a6b676265d67 sys/dev/sysmon/sysmon_envsys_tables.c
--- a/sys/dev/sysmon/sysmon_envsys_tables.c     Sun Jun 19 05:17:38 2011 +0000
+++ b/sys/dev/sysmon/sysmon_envsys_tables.c     Sun Jun 19 05:26:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_envsys_tables.c,v 1.9 2011/06/19 05:17:38 nonaka Exp $ */
+/* $NetBSD: sysmon_envsys_tables.c,v 1.10 2011/06/19 05:26:31 nonaka Exp $ */
 
 /*-
  * Copyright (c) 2007 Juan Romero Pardines.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_tables.c,v 1.9 2011/06/19 05:17:38 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_tables.c,v 1.10 2011/06/19 05:26:31 nonaka Exp $");
 
 #include <sys/types.h>
 
@@ -127,7 +127,7 @@
 const struct sme_descr_entry *
 sme_find_table_entry(enum sme_descr_type table_id, int key)
 {
-       const struct sme_descr_entry *table = sme_find_table();
+       const struct sme_descr_entry *table = sme_find_table(table_id);
 
        if (table != NULL)
                for (; table->type != -1; table++)
@@ -140,7 +140,7 @@
 const struct sme_descr_entry *
 sme_find_table_desc(enum sme_descr_type table_id, const char *str)
 {
-       const struct sme_descr_entry *table = sme_find_table();
+       const struct sme_descr_entry *table = sme_find_table(table_id);
 
        if (table != NULL)
                for (; table->type != -1; table++)



Home | Main Index | Thread Index | Old Index