diff finch/libgnt/gntcolors.c @ 23311:ea341703b1d3

msgcolor command to change colors of messages in conversations.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 07 Jun 2008 05:23:54 +0000
parents c38d72677c8a
children e2e57d3c0578
line wrap: on
line diff
--- a/finch/libgnt/gntcolors.c	Sat Jun 07 01:58:23 2008 +0000
+++ b/finch/libgnt/gntcolors.c	Sat Jun 07 05:23:54 2008 +0000
@@ -29,6 +29,7 @@
 
 #include <glib.h>
 
+#include <errno.h>
 #include <stdlib.h>
 #include <string.h>
 
@@ -168,7 +169,7 @@
 		color = -1;
 	else {
 		g_warning("Invalid color name: %s\n", key);
-		color = -1;
+		color = -EINVAL;
 	}
 	return color;
 }