From 2dff026a5c84251a9b66fc1cbce227cb24a1b2a2 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Mon, 18 Oct 1999 17:12:56 +0000 Subject: [PATCH] change type of the collect function git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7183 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/getarg.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/roken/getarg.h b/lib/roken/getarg.h index 61d509bb1..ca69a6986 100644 --- a/lib/roken/getarg.h +++ b/lib/roken/getarg.h @@ -70,8 +70,15 @@ typedef struct getarg_strings { char **strings; } getarg_strings; +typedef int (*getarg_collect_func)(int short_opt, + int argc, + char **argv, + int *optind, + int *optarg, + void *data); + typedef struct getarg_collect_info { - int (*func)(char *optarg, int argc, char **argv, int *optind, void *data); + getarg_collect_func func; void *data; } getarg_collect_info;