X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=query.c;h=be1ac473365e4540a1f610c0a5c64595b46bfe94;hb=40fc05e11b8f95a9661e6e410a9e7b7da7824891;hp=7f343fd4c8dc801f610b95c2be6a83dcfd623130;hpb=108f3c7ab59844591f7540347914ea57be5245e2;p=apps%2Fmadmutt.git diff --git a/query.c b/query.c index 7f343fd..be1ac47 100644 --- a/query.c +++ b/query.c @@ -54,7 +54,7 @@ static struct mapping_t QueryHelp[] = { static int FirstColumn; static int SecondColumn; -static void query_menu (char *buf, size_t buflen, QUERY * results, +static void query_menu (char *buf, ssize_t buflen, QUERY * results, int retbuf); static address_t *result_to_addr (QUERY * r) @@ -77,7 +77,7 @@ static QUERY *run_query (char *s, int quiet) QUERY *cur = NULL; char cmd[_POSIX_PATH_MAX]; char *buf = NULL; - size_t buflen; + ssize_t buflen; int dummy = 0; char msg[STRING]; char *p; @@ -206,7 +206,7 @@ static int query_tag (MUTTMENU * menu, int n, int m) return cur->tagged - ot; } -int mutt_query_complete (char *buf, size_t buflen) +int mutt_query_complete (char *buf, ssize_t buflen) { QUERY *results = NULL; address_t *tmpa; @@ -235,7 +235,7 @@ int mutt_query_complete (char *buf, size_t buflen) return (0); } -void mutt_query_menu (char *buf, size_t buflen) +void mutt_query_menu (char *buf, ssize_t buflen) { if (!QueryCmd) { mutt_error _("Query command not defined."); @@ -253,7 +253,7 @@ void mutt_query_menu (char *buf, size_t buflen) } } -static void query_menu (char *buf, size_t buflen, QUERY * results, int retbuf) +static void query_menu (char *buf, ssize_t buflen, QUERY * results, int retbuf) { MUTTMENU *menu; HEADER *msg = NULL; @@ -425,7 +425,7 @@ static void query_menu (char *buf, size_t buflen, QUERY * results, int retbuf) /* if we need to return the selected entries */ if (retbuf && (done == 2)) { int tagged = 0; - size_t curpos = 0; + ssize_t curpos = 0; p_clear(buf, buflen);