Commit 915c00de authored by Emden Gansner's avatar Emden Gansner

Just use strcmp, rather than streq.

parent 27735a3c
......@@ -27,7 +27,6 @@
#include "color.h"
#include "colorprocs.h"
#include "colortbl.h"
#include "macros.h"
#include "memory.h"
static char* colorscheme;
......@@ -229,9 +228,9 @@ static char* resolveColor (char* str)
char* ss; /* second slash */
char* c2; /* second char */
if (streq(str, "black")) return str;
if (streq(str, "white")) return str;
if (streq(str, "lightgrey")) return str;
if (!strcmp(str, "black")) return str;
if (!strcmp(str, "white")) return str;
if (!strcmp(str, "lightgrey")) return str;
if (*str == '/') { /* if begins with '/' */
c2 = str+1;
if ((ss = strchr(c2, '/'))) { /* if has second '/' */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment