changeset 123:0a07138e75bc

Rename function getColor() to getHexColorDef().
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 29 Oct 2010 10:58:39 +0300
parents e564dd9df07c
children fe4d5f3b486c
files nnchat.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/nnchat.c	Fri Oct 29 10:55:24 2010 +0300
+++ b/nnchat.c	Fri Oct 29 10:58:39 2010 +0300
@@ -70,7 +70,7 @@
 const int optListN = (sizeof(optList) / sizeof(optList[0]));
 
 
-int getColor(char *str)
+int getHexColorDef(char *str)
 {
     char *p = str;
     int len, val = 0;
@@ -118,7 +118,7 @@
         break;
     
     case 4:
-        if ((optUserColor = getColor(optArg)) < 0) {
+        if ((optUserColor = getHexColorDef(optArg)) < 0) {
             THERR("Invalid color argument '%s', should be a RGB hex triplet '000000'.\n",
                 optArg);
             return FALSE;
@@ -561,7 +561,7 @@
     } else if (!strncasecmp(buf, "/color ", 7)) {
         /* Change color */
         int tmpInt;
-        if ((tmpInt = getColor(buf+7)) < 0) {
+        if ((tmpInt = getHexColorDef(buf+7)) < 0) {
             printMsg("Invalid color value '%s'\n", buf+7);
             return 1;
         }