From 68082782a65795f75dcbba4bd2d620c1520e6624 Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 9 Nov 2006 17:57:40 +0000 Subject: 2006-11-09 Martin Hunt * transport_msgs.h: Change all ints to int32_t. Prefix all struct names with "_stp". * transport.c: Use new struct names. (_stp_handle_start): Send pointer size and endianess. * procfs.c: Use new struct names. --- runtime/transport/procfs.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'runtime/transport/procfs.c') diff --git a/runtime/transport/procfs.c b/runtime/transport/procfs.c index 2605e8f1..d208766d 100644 --- a/runtime/transport/procfs.c +++ b/runtime/transport/procfs.c @@ -87,10 +87,10 @@ static ssize_t _stp_proc_write_cmd (struct file *file, const char __user *buf, switch (type) { case STP_START: { - struct transport_start st; - if (count < sizeof(struct transport_start)) + struct _stp_transport_start st; + if (count < sizeof(struct _stp_transport_start)) return 0; - if (copy_from_user (&st, buf, sizeof(struct transport_start))) + if (copy_from_user (&st, buf, sizeof(struct _stp_transport_start))) return -EFAULT; _stp_handle_start (&st); break; @@ -107,11 +107,11 @@ static ssize_t _stp_proc_write_cmd (struct file *file, const char __user *buf, break; case STP_TRANSPORT_INFO: { - struct transport_info ti; - kbug("STP_TRANSPORT_INFO %d %d\n", (int)count, (int)sizeof(struct transport_info)); - if (count < sizeof(struct transport_info)) + struct _stp_transport_info ti; + kbug("STP_TRANSPORT_INFO %d %d\n", (int)count, (int)sizeof(struct _stp_transport_info)); + if (count < sizeof(struct _stp_transport_info)) return 0; - if (copy_from_user (&ti, buf, sizeof(struct transport_info))) + if (copy_from_user (&ti, buf, sizeof(struct _stp_transport_info))) return -EFAULT; if (_stp_transport_open (&ti) < 0) return -1; -- cgit