From acf5ea72c70ddbdb90b18a2ae1169ad82e455876 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 6 Apr 2009 22:58:44 +0000 Subject: contrib/lar: - fix short read of index table - properly handle errno by using errno.h - extend lar_find_archive() to take a base search path a second argument - extend cli.c to allow specifing the base search path - print index number in lar.pl --- contrib/lar/lar.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'contrib/lar/lar.h') diff --git a/contrib/lar/lar.h b/contrib/lar/lar.h index 59e6fa620..04245ce63 100644 --- a/contrib/lar/lar.h +++ b/contrib/lar/lar.h @@ -7,14 +7,13 @@ #include #include #include +#include #include #include #include #include -int errno; - #define LAR_DIE(s) \ do { \ fprintf(stderr, "%s(%i): %s(): %s\n", \ @@ -82,9 +81,8 @@ lar_archive * lar_open( const char *filename ); int lar_close( lar_archive *ar ); -lar_archive * lar_find_archive( const char *package ); +lar_archive * lar_find_archive( const char *package, const char *path ); lar_member * lar_find_member( lar_archive *ar, const char *package ); #endif - -- cgit v1.2.3