summaryrefslogtreecommitdiff
path: root/app-arch/tapeutils/files/tapeutils-0.4-fix-C-decl.patch
blob: ee07c252d168946b5993fbb3f08204dcba54956b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- a/tapecopy.c
+++ b/tapecopy.c
@@ -26,6 +26,8 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
+#include <stdlib.h>
+
 #include "tapeio.h"
 #include "stdio.h"
 #include "stdarg.h"
--- a/tapedump.c
+++ b/tapedump.c
@@ -26,6 +26,8 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
+#include <stdlib.h>
+
 #include "tapeio.h"
 #include "stdio.h"
 #include "stdarg.h"
@@ -158,7 +160,7 @@
       len = getrec (src, buf, MAX_REC_LEN);
       if (len == 0)
 	{
-	  printf ("total length of file %d = %d records, %d bytes\n",
+	  printf ("total length of file %d = %d records, %lu bytes\n",
 		  file, record, filebytes);
 	  tapebytes += filebytes;
 	  file++;