Module Name:    src
Committed By:   nonaka
Date:           Sun Jun 19 05:26:32 UTC 2011

Modified Files:
        src/sys/dev/sysmon: sysmon_envsys_tables.c

Log Message:
Pass table_id to sme_find_table().


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/sysmon/sysmon_envsys_tables.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/dev/sysmon/sysmon_envsys_tables.c
diff -u src/sys/dev/sysmon/sysmon_envsys_tables.c:1.9 src/sys/dev/sysmon/sysmon_envsys_tables.c:1.10
--- src/sys/dev/sysmon/sysmon_envsys_tables.c:1.9	Sun Jun 19 05:17:38 2011
+++ src/sys/dev/sysmon/sysmon_envsys_tables.c	Sun Jun 19 05:26:31 2011
@@ -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++)

Reply via email to