git-svn: trunk@1193
Nigel Horne authored on 2004/12/17 00:34:57... | ... |
@@ -21,6 +21,9 @@ |
21 | 21 |
* |
22 | 22 |
* Change History: |
23 | 23 |
* $Log: untar.c,v $ |
24 |
+ * Revision 1.19 2004/12/16 15:34:57 nigelhorne |
|
25 |
+ * Tidy |
|
26 |
+ * |
|
24 | 27 |
* Revision 1.18 2004/11/20 13:15:46 nigelhorne |
25 | 28 |
* Better handling of false file type identification |
26 | 29 |
* |
... | ... |
@@ -76,7 +79,7 @@ |
76 | 76 |
* First draft |
77 | 77 |
* |
78 | 78 |
*/ |
79 |
-static char const rcsid[] = "$Id: untar.c,v 1.18 2004/11/20 13:15:46 nigelhorne Exp $"; |
|
79 |
+static char const rcsid[] = "$Id: untar.c,v 1.19 2004/12/16 15:34:57 nigelhorne Exp $"; |
|
80 | 80 |
|
81 | 81 |
#include <stdio.h> |
82 | 82 |
#include <errno.h> |
... | ... |
@@ -118,7 +121,7 @@ octal(const char *str) |
118 | 118 |
{ |
119 | 119 |
int ret = -1; |
120 | 120 |
|
121 |
- sscanf(str, "%o", &ret); |
|
121 |
+ sscanf(str, "%o", (unsigned int *)&ret); |
|
122 | 122 |
return ret; |
123 | 123 |
} |
124 | 124 |
|