diff --git a/src/colors.c b/src/colors.c
index 0c79e13d57d56e72b616cde344032e13efe29b9a..1cf4c973cfc63c933b221b4384041764eb51beac 100644 (file)
--- a/src/colors.c
+++ b/src/colors.c
return NULL;
}
return NULL;
}
-static int
+static void
colors_update_pair(enum color id)
{
assert(id > 0 && id < COLOR_END);
colors_update_pair(enum color id)
{
assert(id > 0 && id < COLOR_END);
init_pair(id,
(fg < 0 ? -1 : fg),
(bg < 0 ? -1 : bg));
init_pair(id,
(fg < 0 ? -1 : fg),
(bg < 0 ? -1 : bg));
- return 0;
}
int
}
int
if (cur != endptr && endptr[0] == '\0') {
color |= tmp;
} else {
if (cur != endptr && endptr[0] == '\0') {
color |= tmp;
} else {
- fprintf(stderr,_("Warning: Unknown color - %s\n"), str);
+ fprintf(stderr, "%s: %s\n",
+ _("Unknown color"), str);
return COLOR_ERROR;
}
}
return COLOR_ERROR;
}
}
color_entry_t *entry = colors_lookup_by_name(name);
if (!entry) {
color_entry_t *entry = colors_lookup_by_name(name);
if (!entry) {
- fprintf(stderr,_("Warning: Unknown color field - %s\n"), name);
+ fprintf(stderr, "%s: %s",
+ _("Unknown color field"), name);
return -1;
}
return -1;
}
return 0;
}
return 0;
}
-
-int
+void
colors_start(void)
{
if (has_colors()) {
colors_start(void)
{
if (has_colors()) {
g_list_free(color_definition_list);
color_definition_list = NULL;
}
g_list_free(color_definition_list);
color_definition_list = NULL;
}
-
- return 0;
}
#endif
}
#endif
-int
+void
colors_use(WINDOW *w, enum color id)
{
color_entry_t *entry = &colors[id];
colors_use(WINDOW *w, enum color id)
{
color_entry_t *entry = &colors[id];
#ifdef ENABLE_COLORS
}
#endif
#ifdef ENABLE_COLORS
}
#endif
-
- return 0;
}
}