# HG changeset patch # User Matti Hamalainen # Date 1288339119 -10800 # Node ID 0a07138e75bc636c8330594db48fa864061310b5 # Parent e564dd9df07c3f54bf9e6a6fe0c4f0d9029e8ccc Rename function getColor() to getHexColorDef(). diff -r e564dd9df07c -r 0a07138e75bc nnchat.c --- 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; }