Skip to content

Commit ea1ab62

Browse files
committed
kfc.c: cleanup
1 parent 09dafae commit ea1ab62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kfc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#include <dirent.h>
22
#include <getopt.h>
3-
#include "kfc.h"
43
#include <stdio.h>
54
#include <stdlib.h>
65
#include <string.h>
76
#include <sys/stat.h>
87
#include <time.h>
98
#include <unistd.h>
9+
#include "kfc.h"
1010

1111

1212
int
@@ -68,7 +68,7 @@ select_palette(void)
6868
\\033]4;12;#$(echo $color15)\\033\\ \
6969
\\033]10;#$(echo $foreground)\\033\\ \
7070
\\033]11;#$(echo $background)\\033\\ \
71-
\\033]12;#$(echo $cursor)\\033\\ \" \033[21D", p.CONF);
71+
\\033]12;#$(echo $cursor)\\033\\ \" \033[21D");
7272
p.fp = fopen(p.CSEQ, "w");
7373
fprintf(p.fp, "%s", p.PRI);
7474
fclose(p.fp);
@@ -88,7 +88,7 @@ list_palette(void)
8888

8989
if (p.dr == NULL)
9090
{
91-
fprintf(stderr, "Could not open directory");
91+
printf("Could not open directory");
9292
return 1;
9393
}
9494

@@ -109,7 +109,7 @@ random_palette(void)
109109
p.randf = 0;
110110
if (p.dr == NULL)
111111
{
112-
fprintf(stderr, "Could not open directory");
112+
printf("Could not open directory");
113113
return 1;
114114
}
115115

0 commit comments

Comments
 (0)