1 |
diff -ur buffer-1.19.orig/buffer.c buffer-1.19/buffer.c |
diff -Nur buffer-1.19/sem.c buffer-1.19_buffer-1.19/sem.c |
2 |
--- buffer-1.19.orig/buffer.c Wed Jun 7 15:30:20 2000 |
--- buffer-1.19/sem.c 2016-02-07 20:07:23.016441596 +0100 |
3 |
+++ buffer-1.19/buffer.c Wed Jun 7 15:44:55 2000 |
+++ buffer-1.19_buffer-1.19/sem.c 2016-02-07 20:09:39.850435663 +0100 |
|
@@ -109,6 +109,8 @@ |
|
|
* Initial revision |
|
|
* |
|
|
*/ |
|
|
+#include <stdlib.h> |
|
|
+#include <string.h> |
|
|
#include <unistd.h> |
|
|
#include <stdio.h> |
|
|
#include <signal.h> |
|
|
@@ -509,7 +511,7 @@ |
|
|
if( debug ) |
|
|
fprintf( stderr, "%s pbuffer is 0x%08x, buffer_size is %d [%d x %d]\n", |
|
|
proc_string, |
|
|
- (char *)pbuffer, buffer_size, blocks, blocksize ); |
|
|
+ (unsigned int) (char *)pbuffer, buffer_size, blocks, blocksize ); |
|
|
|
|
|
#ifdef SYS5 |
|
|
memset( (char *)pbuffer, '\0', buffer_size ); |
|
|
diff -ur buffer-1.19.orig/sem.c buffer-1.19/sem.c |
|
|
--- buffer-1.19.orig/sem.c Wed Jun 7 15:30:20 2000 |
|
|
+++ buffer-1.19/sem.c Wed Jun 7 16:00:04 2000 |
|
4 |
@@ -28,13 +28,14 @@ |
@@ -28,13 +28,14 @@ |
5 |
|
|
6 |
#include <stdio.h> |
#include <stdio.h> |