Loads of NetBSD tweaks here.

This commit is contained in:
Roy Marples
2008-01-10 23:22:46 +00:00
parent 5aea880f81
commit 2d95c9a756
10 changed files with 19 additions and 18 deletions

View File

@@ -177,6 +177,7 @@ static const char *const color_terms[] = {
"screen-w",
"screen.linux",
"vt100",
"vt220",
"xterm",
"xterm-256color",
"xterm-color",

View File

@@ -151,11 +151,14 @@ char **rc_config_list (const char *file)
/* Get entry - we do not want comments */
token = strsep (&p, "#");
if (token && (strlen (token) > 1)) {
/* Stip the newline if present */
if (token[strlen (token) - 1] == '\n')
token[strlen (token) - 1] = 0;
/* If not variable assignment then skip */
if (strchr (token, '=')) {
/* Stip the newline if present */
if (token[strlen (token) - 1] == '\n')
token[strlen (token) - 1] = 0;
rc_strlist_add (&list, token);
rc_strlist_add (&list, token);
}
}
free (buffer);
}