X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2Futilities.c;h=e0db9afa83b5c68e9ed70d73e81450901f4a2123;hp=d0539383a306ab194ae13c51998100acc2c2d5b3;hb=47acd076f971d347c39c498e69634a3aa0f73031;hpb=d1925e0c515fcb4f815d75292566d600fd715ff5 diff --git a/restore/utilities.c b/restore/utilities.c index d053938..e0db9af 100644 --- a/restore/utilities.c +++ b/restore/utilities.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: utilities.c,v 1.23 2003/10/26 16:05:48 stelian Exp $"; + "$Id: utilities.c,v 1.24 2003/11/22 16:52:16 stelian Exp $"; #endif /* not lint */ #include @@ -506,7 +506,7 @@ void resizemaps(dump_ino_t oldmax, dump_ino_t newmax) void GetPathFile(char *source, char *path, char *fname) { - char *p, *s; + char *p, *s; *path = 0; *fname = 0; @@ -606,13 +606,13 @@ Inode2Tapepos(dump_ino_t ino, long *tnum, long long *tpos, int exactmatch) int GetSCSIIDFromPath(char *devPath, long *id) { - int len; - char fbuff[2048]; - char path[2048]; - char fname[2048]; - char *fpn = fname; - char idstr[32]; - char *ip = idstr; + int len; + char fbuff[2048]; + char path[2048]; + char fname[2048]; + char *fpn = fname; + char idstr[32]; + char *ip = idstr; bzero(fbuff, sizeof(fbuff)); if ((len = readlink(devPath, fbuff, 2048)) == -1) { @@ -643,17 +643,14 @@ int CreateAppleDoubleFileRes(char *oFile, FndrFileInfo *finderinfo, mode_t mode, int flags, struct timeval *timep, u_int32_t uid, u_int32_t gid) { - int err = 0; - int fdout; - char *p; - char *f; - char *pp; + int err = 0; + int fdout; + char *p; + char *pp; ASDHeaderPtr hp; - ASDEntryPtr ep; - long thesize; - long n; - long loops; - long remain; + ASDEntryPtr ep; + long thesize; + long n; n = 1; /* number of entries in double file ._ only finderinfo */