diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-01-26 00:11:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-01-26 00:11:47 +0000 |
commit | 4dfb29fa38a22615eda253b1124261379f6fbbcc (patch) | |
tree | 0b5fcc4d7ad0cc68d672c81c0b931d9d3245bc49 /tty-term.c | |
parent | ecc22c521d83f8ce480c0e2866fdf3ed14bd6131 (diff) | |
download | rtmux-4dfb29fa38a22615eda253b1124261379f6fbbcc.tar.gz rtmux-4dfb29fa38a22615eda253b1124261379f6fbbcc.tar.bz2 rtmux-4dfb29fa38a22615eda253b1124261379f6fbbcc.zip |
Use LIST_* not SLIST_*.
Diffstat (limited to 'tty-term.c')
-rw-r--r-- | tty-term.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -30,7 +30,7 @@ void tty_term_override(struct tty_term *, const char *); char *tty_term_strip(const char *); -struct tty_terms tty_terms = SLIST_HEAD_INITIALIZER(tty_terms); +struct tty_terms tty_terms = LIST_HEAD_INITIALIZER(tty_terms); const struct tty_term_code_entry tty_term_codes[NTTYCODE] = { { TTYC_ACSC, TTYCODE_STRING, "acsc" }, @@ -305,7 +305,7 @@ tty_term_find(char *name, int fd, const char *overrides, char **cause) char *s; const char *acs; - SLIST_FOREACH(term, &tty_terms, entry) { + LIST_FOREACH(term, &tty_terms, entry) { if (strcmp(term->name, name) == 0) { term->references++; return (term); @@ -318,7 +318,7 @@ tty_term_find(char *name, int fd, const char *overrides, char **cause) term->references = 1; term->flags = 0; memset(term->codes, 0, sizeof term->codes); - SLIST_INSERT_HEAD(&tty_terms, term, entry); + LIST_INSERT_HEAD(&tty_terms, term, entry); /* Set up curses terminal. */ if (setupterm(name, fd, &error) != OK) { @@ -437,7 +437,7 @@ tty_term_free(struct tty_term *term) if (--term->references != 0) return; - SLIST_REMOVE(&tty_terms, term, tty_term, entry); + LIST_REMOVE(term, entry); for (i = 0; i < NTTYCODE; i++) { if (term->codes[i].type == TTYCODE_STRING) |