s/classs/classes/ to fixup grammer after the previous global renaming.

Sponsored by: DARPA & NAI Labs
This commit is contained in:
Poul-Henning Kamp 2002-04-04 09:41:47 +00:00
parent e6952b6ee5
commit 2654e1fc4e
4 changed files with 8 additions and 8 deletions

View File

@ -108,7 +108,7 @@ g_confdot(void)
sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND);
sbuf_clear(sb);
sbuf_printf(sb, "digraph geom {\n");
LIST_FOREACH(mp, &g_classs, class)
LIST_FOREACH(mp, &g_classes, class)
g_confdot_class(sb, mp);
sbuf_printf(sb, "};\n");
sbuf_finish(sb);
@ -208,7 +208,7 @@ g_conf_specific(struct g_class *mp, struct g_geom *gp, struct g_provider *pp, st
sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND);
sbuf_clear(sb);
sbuf_printf(sb, "<mesh>\n");
LIST_FOREACH(mp2, &g_classs, class) {
LIST_FOREACH(mp2, &g_classes, class) {
if (mp != NULL && mp != mp2)
continue;
g_conf_class(sb, mp2, gp, pp, cp);

View File

@ -155,7 +155,7 @@ g_do_event(struct g_event *ep)
mp2 = ep->class;
if (mp2->taste == NULL)
break;
LIST_FOREACH(mp, &g_classs, class) {
LIST_FOREACH(mp, &g_classes, class) {
if (mp2 == mp)
continue;
LIST_FOREACH(gp, &mp->geom, geom) {
@ -169,7 +169,7 @@ g_do_event(struct g_event *ep)
case EV_NEW_PROVIDER:
g_trace(G_T_TOPOLOGY, "EV_NEW_PROVIDER(%s)",
ep->provider->name);
LIST_FOREACH(mp, &g_classs, class) {
LIST_FOREACH(mp, &g_classes, class) {
if (mp->taste == NULL)
continue;
i = 1;

View File

@ -75,7 +75,7 @@ void g_post_event(enum g_events ev, struct g_class *mp, struct g_geom *gp, struc
void g_run_events(void);
/* geom_subr.c */
extern struct class_list_head g_classs;
extern struct class_list_head g_classes;
extern char *g_wait_event, *g_wait_sim, *g_wait_up, *g_wait_down;
/* geom_io.c */

View File

@ -61,7 +61,7 @@
#include <geom/geom_int.h>
#include <machine/stdarg.h>
struct class_list_head g_classs = LIST_HEAD_INITIALIZER(g_classs);
struct class_list_head g_classes = LIST_HEAD_INITIALIZER(g_classes);
static struct g_tailq_head geoms = TAILQ_HEAD_INITIALIZER(geoms);
static int g_nproviders;
char *g_wait_event, *g_wait_up, *g_wait_down, *g_wait_sim;
@ -79,7 +79,7 @@ g_add_class(struct g_class *mp)
g_topology_lock();
g_trace(G_T_TOPOLOGY, "g_add_class(%s)", mp->name);
LIST_INIT(&mp->geom);
LIST_INSERT_HEAD(&g_classs, mp, class);
LIST_INSERT_HEAD(&g_classes, mp, class);
if (g_nproviders > 0)
g_post_event(EV_NEW_CLASS, mp, NULL, NULL, NULL);
g_topology_unlock();
@ -558,7 +558,7 @@ g_class_by_name(char *name)
g_trace(G_T_TOPOLOGY, "g_class_by_name(%s)", name);
g_topology_assert();
LIST_FOREACH(mp, &g_classs, class)
LIST_FOREACH(mp, &g_classes, class)
if (!strcmp(mp->name, name))
return (mp);
return (NULL);