summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar bencollins 2003-07-13 00:49:54 +0000
committerGravatar bencollins 2003-07-13 00:49:54 +0000
commit22487936468d60ee02b3f7ad83506dc3a903cb2e (patch)
treeae354dc79c825061d4d33c9aa2cc394b4945efe6
parentUpdates from 0.10.0 release. (diff)
Fix compiler warnings.
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@109 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to '')
-rw-r--r--src/fcp.c1
-rw-r--r--src/iso.c4
-rw-r--r--tools/sendiso.c23
-rw-r--r--tools/testlibraw.c6
4 files changed, 22 insertions, 12 deletions
diff --git a/src/fcp.c b/src/fcp.c
index 06fbab8..e5d98d5 100644
--- a/src/fcp.c
+++ b/src/fcp.c
@@ -11,6 +11,7 @@
#include <config.h>
#include <errno.h>
#include <unistd.h>
+#include <string.h>
#include "raw1394.h"
#include "kernel-raw1394.h"
diff --git a/src/iso.c b/src/iso.c
index 5551fd6..32c0fa5 100644
--- a/src/iso.c
+++ b/src/iso.c
@@ -16,6 +16,7 @@
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
+#include <malloc.h>
#include "raw1394.h"
#include "kernel-raw1394.h"
@@ -116,7 +117,7 @@ static int do_iso_init(raw1394handle_t handle,
int irq_interval,
int cmd)
{
- unsigned int bufsize, stride;
+ unsigned int stride;
/* already initialized? */
if(handle->iso_mode != ISO_INACTIVE)
@@ -386,7 +387,6 @@ out_produce:
if(ioctl(handle->fd, RAW1394_IOC_ISO_XMIT_PACKETS, &packets))
retval = -1;
}
-out_free:
free(packets.infos);
out:
if(stop_sync) {
diff --git a/tools/sendiso.c b/tools/sendiso.c
index 743c83e..8e20cec 100644
--- a/tools/sendiso.c
+++ b/tools/sendiso.c
@@ -1,9 +1,20 @@
+/*
+ * libraw1394 - library for raw access to the 1394 bus with the Linux subsystem.
+ *
+ * Copyright (C) 1999,2000 Andreas Bombe
+ *
+ * This library is licensed under the GNU Lesser General Public License (LGPL),
+ * version 2.1 or later. See the file COPYING.LIB in the distribution for
+ * details.
+ */
+
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <getopt.h>
#include <errno.h>
#include <fcntl.h>
+#include <string.h>
#include "../src/raw1394.h"
@@ -13,8 +24,6 @@ char *filename;
unsigned long loopcount = 1;
unsigned int speed;
-unsigned long packetcount;
-volatile unsigned int pend_req;
void usage_exit(int exitcode)
{
@@ -126,12 +135,12 @@ void parse_args(int argc, char **argv)
}
-int dec_int_callback(raw1394handle_t unused, int *counter, int unused_errcode)
+static int dec_int_callback(raw1394handle_t unused, void *counter, raw1394_errcode_t unused_errcode)
{
- (*counter)--;
- packetcount++;
- return 0;
+ (*(int *)counter)--;
+ return 0;
}
+static int pend_req;
#define BUF_SIZE 65536
#define BUF_OVER BUF_SIZE
@@ -143,7 +152,7 @@ void send_file_once(raw1394handle_t handle, int file)
static char buffer[BUF_SIZE + BUF_OVER];
static struct raw1394_reqhandle rh = {
- (req_callback_t)dec_int_callback,
+ dec_int_callback,
&pend_req
};
diff --git a/tools/testlibraw.c b/tools/testlibraw.c
index 2836945..5f73bd9 100644
--- a/tools/testlibraw.c
+++ b/tools/testlibraw.c
@@ -21,12 +21,12 @@
#define TESTADDR (CSR_REGISTER_BASE + CSR_CYCLE_TIME)
const char not_compatible[] = "\
-This libraw1394 does not work with your version of Linux. You need a different
-version that matches your kernel (see kernel help text for the raw1394 option to
+This libraw1394 does not work with your version of Linux. You need a different\n\
+version that matches your kernel (see kernel help text for the raw1394 option to\n\
find out which is the correct version).\n";
const char not_loaded[] = "\
-This probably means that you don't have raw1394 support in the kernel or that
+This probably means that you don't have raw1394 support in the kernel or that\n\
you haven't loaded the raw1394 module.\n";
quadlet_t buffer;
bers for release.Gravatar aeb 2-3/+11 2000-11-24Added libraw1394.postinst.in to list of distributed files.Gravatar aeb 3-3/+35 2000-11-23Add ldconfig in deb postinst for Debian policy conformance.Gravatar aeb 2-2/+17 2000-11-23Removed acconfig.h, which wasn't needed for some time.Gravatar aeb 1-13/+0 2000-11-22Added ieee1394.h header.Gravatar aeb 3-1/+38 2000-09-13Fix raw1394_start_iso_write() which uses wrong variable.Gravatar aeb 1-1/+1 2000-09-10Work around compiler warnings for int/ptr casts.Gravatar aeb 6-10/+20 2000-09-10Added control files for Debian packages.Gravatar aeb 6-8/+106 2000-09-01Added missing prototypes for iso send functions.Gravatar aeb 1-0/+7 2000-08-08Added raw1394_get_irm_id().Gravatar aeb 7-7/+39 2000-08-06Added support for isochronous sending.Gravatar aeb 3-0/+35 2000-07-05Added raw1394_reset_bus() call.Gravatar aeb 4-0/+23 2000-06-22- Set library version info in configure.in, use in src/Makefile.am.Gravatar aeb 4-2/+16 2000-06-15Update libtool version number.Gravatar aeb 2-2/+2 2000-06-14Added copyright headers.Gravatar aeb 6-0/+54 2000-06-11Added explicit AC_PROG_INSTALL call.Gravatar aeb 1-0/+1 2000-06-09Fix size of error field.Gravatar aeb 1-2/+2 2000-06-02Modified support for 32/64 bit environments, control struct fields have fixed...Gravatar aeb 7-43/+28 2000-05-28Added support for environments with 64 bit kernel and 32 bit userland.Gravatar aeb 8-7/+45 2000-04-27Fixed missing setting of ext code in raw1394_start_lock()Gravatar aeb 1-0/+1 2000-04-15Fixed lock transaction to actually return response value.Gravatar aeb 3-5/+11 2000-04-12Add userdata functions as news.Gravatar aeb 1-0/+4 2000-04-05Add userdata functions.Gravatar aeb 3-0/+18 2000-03-18Bump version number to 0.6.Gravatar aeb 3-5/+6 2000-03-18Mention byte order change.Gravatar aeb 1-0/+2 2000-03-18Mention SourceForge home.Gravatar aeb 1-1/+5