aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2011-12-02 15:50:29 +0100
committerPatrik Nyblom <[email protected]>2011-12-02 15:50:29 +0100
commit8d228383d1c341e1150684db1abe526e7b47679c (patch)
tree272b3ee3b9f7c5078f572f158d062d6709baa613
parent6c9a067222f868564cfe3e3f8deda738cc23da31 (diff)
downloadotp-8d228383d1c341e1150684db1abe526e7b47679c.tar.gz
otp-8d228383d1c341e1150684db1abe526e7b47679c.tar.bz2
otp-8d228383d1c341e1150684db1abe526e7b47679c.zip
Remove compiler warnings and ancient VXWORKS code
-rw-r--r--lib/runtime_tools/c_src/trace_file_drv.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/runtime_tools/c_src/trace_file_drv.c b/lib/runtime_tools/c_src/trace_file_drv.c
index 116b8242f5..5de2a65917 100644
--- a/lib/runtime_tools/c_src/trace_file_drv.c
+++ b/lib/runtime_tools/c_src/trace_file_drv.c
@@ -42,11 +42,6 @@
#include <errno.h>
#include <sys/types.h>
#include <fcntl.h>
-#ifdef VXWORKS
-# include "reclaim.h"
-#endif
-
-
/*
* Deduce MAXPATHLEN, which is the one to use in this file,
@@ -199,6 +194,8 @@ static int wrap_file(TraceFileData *data);
#ifdef __WIN32__
static int win_open(char *path, int flags, int mask);
#define open win_open
+#else
+ErlDrvEntry *driver_init(void);
#endif
/*
@@ -360,11 +357,11 @@ static void trace_file_output(ErlDrvData handle, char *buff, int bufflen)
TraceFileData *data = (TraceFileData *) handle;
unsigned char b[5] = "";
put_be((unsigned) bufflen, b + 1);
- switch (my_write(data, b, sizeof(b))) {
+ switch (my_write(data, (unsigned char *) b, sizeof(b))) {
case 1:
heavy = !0;
case 0:
- switch (my_write(data, buff, bufflen)) {
+ switch (my_write(data, (unsigned char *) buff, bufflen)) {
case 1:
heavy = !0;
case 0: