Skip to content

Commit 5343ac2

Browse files
committed
list_palettes: add mode prefix
1 parent bf3f399 commit 5343ac2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kfc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
struct dirent *de;
1414

15-
static int i, cval, randf,
15+
static int i, cval, randf;
1616
static int rflag, lflag, pflag = 0; /* argument flags */
1717
static size_t len = BUFF;
1818
static char *line, *sval, *mode, *conf, *evar, *eval, *seq = NULL;
@@ -80,7 +80,7 @@ list_palette(void)
8080
{
8181
if ( de->d_type == 8 )
8282
{
83-
puts(de->d_name);
83+
printf("%s/%s\n", mode, de->d_name);
8484
}
8585
}
8686

0 commit comments

Comments
 (0)