Skip to content

Commit 9bb36e0

Browse files
authored
Update and rename kpal.c to kc.c
1 parent 78b0d3e commit 9bb36e0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

kpal.c renamed to kc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
#include <unistd.h>
44
#include <dirent.h>
55
#include <string.h>
6-
#include "kpal.h"
6+
#include "kc.h"
77

88
int
99
find_palettes(void)
1010
{
11-
if ( access("/etc/kpal/palettes", F_OK) == 0 )
11+
if ( access("/etc/kc/palettes", F_OK) == 0 )
1212
{
13-
strcpy(p.SEQ, "/etc/kpal/palettes");
13+
strcpy(p.SEQ, "/etc/kc/palettes");
1414
return 0;
1515
}
1616

@@ -124,7 +124,7 @@ main(int argc, char **argv)
124124
fprintf(stderr, "XDG_CONFIG_HOME not defined\n");
125125
exit(2);
126126
}
127-
strcat(p.CONF, "/kpal");
127+
strcat(p.CONF, "/kc");
128128

129129
if (find_palettes() == 1)
130130
{
@@ -172,7 +172,7 @@ main(int argc, char **argv)
172172
if (p.errf)
173173
{
174174
fprintf(stderr, "\
175-
usage: cpal [-s palette|-r|-L] [l|-v|-p]\n \
175+
usage: kc [-s palette|-r|-L] [l|-v|-p]\n \
176176
-s palette Select a palette\n \
177177
-l List all palettes\n \
178178
-p Print current palette\n \

0 commit comments

Comments
 (0)