Browse code

Code Tidy

git-svn: trunk@833

Nigel Horne authored on 2004/09/06 17:45:44
Showing 1 changed files
... ...
@@ -20,6 +20,9 @@
20 20
  *
21 21
  * Change History:
22 22
  * $Log: untar.c,v $
23
+ * Revision 1.4  2004/09/06 08:45:44  nigelhorne
24
+ * Code Tidy
25
+ *
23 26
  * Revision 1.3  2004/09/06 08:34:47  nigelhorne
24 27
  * Randomise extracted file names from tar file
25 28
  *
... ...
@@ -30,7 +33,7 @@
30 30
  * First draft
31 31
  *
32 32
  */
33
-static	char	const	rcsid[] = "$Id: untar.c,v 1.3 2004/09/06 08:34:47 nigelhorne Exp $";
33
+static	char	const	rcsid[] = "$Id: untar.c,v 1.4 2004/09/06 08:45:44 nigelhorne Exp $";
34 34
 
35 35
 #include <stdio.h>
36 36
 #include <errno.h>
... ...
@@ -80,7 +83,7 @@ cli_untar(const char *dir, int desc)
80 80
 
81 81
 		if(!in_block) {
82 82
 			char type;
83
-			char *suffix;
83
+			const char *suffix;
84 84
 			size_t suffixLen = 0;
85 85
 			int fd, directory;
86 86
 			char magic[7], name[101], osize[13];
... ...
@@ -116,7 +119,7 @@ cli_untar(const char *dir, int desc)
116 116
 					break;
117 117
 				default:
118 118
 					cli_errmsg("cli_untar: unknown type flag %c\n", type);
119
-					break;
119
+					return CL_EIO;
120 120
 			}
121 121
 
122 122
 			if(directory)