[hackers] [sltar] Reformating. || gottox

From: <hg_AT_suckless.org>
Date: Sun, 11 Nov 2012 17:23:43 +0100 (CET)

changeset: 16:e25fd0b6bbc3
user: gottox_AT_rootkit.lan
date: Wed Dec 19 15:14:43 2007 +0100
files: sltar.c
description:
Reformating.


diff -r 6679411d7e6f -r e25fd0b6bbc3 sltar.c
--- a/sltar.c Wed Dec 19 13:35:45 2007 +0100
+++ b/sltar.c Wed Dec 19 15:14:43 2007 +0100
_AT_@ -25,12 +25,12 @@
                 fputs("sltar-" VERSION " - suckless tar\nsltar [xt]",stderr);
                 return EXIT_FAILURE;
         }
- for(lname[100] = fname[100] = l = 0; fread(b,END,1,stdin); l -= END) {
+ for(lname[100] = fname[100] = l = 0; fread(b,END,1,stdin); l -= END)
                  if(l <= 0) {
                         if(*b == '\0')
                                 break;
                         memcpy(fname,b,100);
- memcpy(lname,b+LINK,100);
+ memcpy(lname,b + LINK,100);
                         l = strtoull(b + SIZE,0,8) + END;
                         if(a == 't') {
                                 puts(fname);
_AT_@ -58,8 +58,8 @@
                                 if(mkdir(fname,(mode_t) strtoull(b + MODE,0,8)))
                                         perror(fname);
                                 break;
+ case '3': /* char device */
                         case '4': /* block device */
- case '3': /* char device */
                                 /* TODO */
                                 break;
                         case '6': /* fifo */
_AT_@ -73,7 +73,6 @@
                         perror(fname);
                         break;
                 }
- }
         if(f)
                 fclose(f);
         return EXIT_SUCCESS;
Received on Sun Nov 11 2012 - 17:23:43 CET

This archive was generated by hypermail 2.3.0 : Sun Nov 11 2012 - 17:24:39 CET