summaryrefslogtreecommitdiffhomepage
path: root/contrib/lar/lar.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-04-06 22:58:44 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-04-06 22:58:44 +0000
commitacf5ea72c70ddbdb90b18a2ae1169ad82e455876 (patch)
tree072cc1d19061f8e557726a6c8a3efd04c2c072d1 /contrib/lar/lar.h
parentbf1cbdd8389d5e7067b03c1f10e9fbcb3756ccf4 (diff)
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
Diffstat (limited to 'contrib/lar/lar.h')
-rw-r--r--contrib/lar/lar.h6
1 files changed, 2 insertions, 4 deletions
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 <stdint.h>
#include <fcntl.h>
#include <string.h>
+#include <errno.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
-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
-