X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=list.c;h=01bb156f67f30e13b5d70f32b2b5bb64c87df3e3;hb=4892aec476c9d7ce2cf11483cc369fcddf7bea6a;hp=ce0f9efa6eb3f8304ff8897ae4b65b8ffe19dcb4;hpb=0c943338ec90d44e3c36eeb3bb942a9425681a67;p=pkg%2Fabook.git diff --git a/list.c b/list.c index ce0f9ef..01bb156 100644 --- a/list.c +++ b/list.c @@ -269,13 +269,13 @@ highlight_line(WINDOW *win, int line) int selected_items() { - int i, a=0; + int i, n = 0; for(i = 0; i < items; i++) if(selected[i]) - a++; + n++; - return a; + return n; } void