From 8ed2154fbd1071c685264d8d40c7931c0e78495f Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Fri, 15 Apr 2011 00:02:33 +0000 Subject: [PATCH] bad edd, 2 warnings! --- xxxterm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xxxterm.c b/xxxterm.c index b11dcce..97f9a5f 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -330,6 +330,7 @@ struct karg { #define XT_XTP_STR "xxxt://" /* XTP classes (xxxt://) */ +#define XT_XTP_INVALID 0 /* invalid */ #define XT_XTP_DL 1 /* downloads */ #define XT_XTP_HL 2 /* history */ #define XT_XTP_CL 3 /* cookies */ @@ -5313,7 +5314,7 @@ struct xtp_despatch xtp_despatches[] = { { XT_XTP_HL, &hl_session_key, xtp_handle_hl }, { XT_XTP_FL, &fl_session_key, xtp_handle_fl }, { XT_XTP_CL, &cl_session_key, xtp_handle_cl }, - { NULL, NULL, NULL } + { XT_XTP_INVALID, NULL, NULL } }; /* @@ -5361,7 +5362,7 @@ parse_xtp_url(struct tab *t, const char *url) dsp = xtp_despatches; req_class = atoi(tokens[0]); - while (dsp->xtp_class != NULL) { + while (dsp->xtp_class) { if (dsp->xtp_class == req_class) { dsp_match = dsp; break; -- 2.11.4.GIT