- Set library version info in configure.in, use in src/Makefile.am.

- Enable compiler warnings.


git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@32 53a565d1-3bb7-0310-b661-cf11e63c67ab
This commit is contained in:
aeb 2000-06-22 16:22:00 +00:00
parent bf80f4a16a
commit 270561f388
4 changed files with 16 additions and 2 deletions

View File

@ -8,4 +8,15 @@ AC_PROG_CC
AM_PROG_LIBTOOL
AC_PROG_INSTALL
# set the libtool so version numbers
lt_major=4
lt_revision=0
lt_age=0
AC_SUBST(lt_major)
AC_SUBST(lt_revision)
AC_SUBST(lt_age)
CFLAGS="$CFLAGS -Wall -Wunused"
AC_OUTPUT([ Makefile src/Makefile debian/Makefile ])

View File

@ -3,7 +3,7 @@
lib_LTLIBRARIES = libraw1394.la
libraw1394_la_LDFLAGS = -version-info 4:0:0
libraw1394_la_LDFLAGS = -version-info @lt_major@:@lt_revision@:@lt_age@
libraw1394_la_SOURCES = \
main.c \

View File

@ -13,6 +13,7 @@
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include "raw1394.h"
#include "kernel-raw1394.h"
@ -84,7 +85,7 @@ struct raw1394_handle *raw1394_get_handle(void)
}
handle->generation = init_rawdevice(handle);
if (handle->generation < 0) {
if (handle->generation == -1) {
close(handle->fd);
free(handle);
return NULL;

View File

@ -53,6 +53,8 @@ int my_fcp_handler(raw1394handle_t handle, nodeid_t nodeid, int response,
}
printf("\n");
return 0;
}