k9core

Unnamed repository
Log | Files | Refs | LICENSE

commit 342a8857ecfc9e8c5101cc45e725d48e3a722b96
parent dd949baf1c3400127ec003fb6cbe88016f2863c6
Author: qorg11 <qorg@vxempire.xyz>
Date:   Mon, 30 Nov 2020 11:34:52 +0100

less long line

Diffstat:
Msrc/cat.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/cat.c b/src/cat.c @@ -17,7 +17,8 @@ cat(int fd, const char *filename) fd = open(filename, O_RDONLY); if (fd == -1) - fprintf(stderr,"error opening %s: %s\n",filename,strerror(errno)); + fprintf(stderr,"error opening %s: %s\n", + filename,strerror(errno)); while((c = read(fd,buf,sizeof(buf))) > 0) @@ -28,7 +29,7 @@ cat(int fd, const char *filename) int main(int argc, char *argv[]) { - int c = getopt(argc,argv,"u"); + getopt(argc,argv,"u"); if (argc == optind) cat(0,"-"); for(int i = optind; i<argc;i++)