AmendHub

Download:

jcs

/

subtext

/

amendments

/

370

board: Remove unused variables


jcs made amendment 370 about 1 year ago
--- board.c Tue Mar 7 21:11:12 2023 +++ board.c Tue Mar 7 22:34:45 2023 @@ -167,11 +167,10 @@ board_list_fidonet_boards(struct session *s) { 'q', "QqXx", "Return to main menu" }, { '?', "?", "List menu options" }, }; - char prompt[30]; struct board *fboards = NULL, tboard; size_t nfboards; char c; - short ret, bn, n, i, j; + short bn, n, i, j; bool done, show_list, show_help; fboards = xcalloc(sizeof(struct board), db->nboards); @@ -225,13 +224,11 @@ board_list_fidonet_boards(struct session *s) nitems(opts), show_help, "Board #", &bn); show_help = false; -handle_opt: switch (c) { case 'l': show_list = true; break; case '#': -check_pn: if (bn < 1 || bn > nfboards) { session_printf(s, "Invalid board\r\n"); session_flush(s); @@ -1203,7 +1200,7 @@ board_index_sorted_post_ids(struct board *board, struct board_fidonet_post fpost; struct board_thread thread; size_t ret, size, i, j, n, npost_ids, nthread_ids; - unsigned long *post_ids, *thread_ids, tmp_id; + unsigned long *post_ids, *thread_ids; struct board_id_time_map *id_map, *thread_map, tmp_map; char *data; @@ -1315,7 +1312,7 @@ board_index_sorted_post_ids(struct board *board, xfree(&thread.parent_post_ids); } - free(&thread_map); + xfree(&thread_map); } write_out: @@ -1349,7 +1346,6 @@ board_ingest_fidopkt(struct board *board, struct fidop unsigned long *post_ids; char *pdata; size_t asize, cache_size, psize, npost_ids; - ssize_t count; short n, ret, bret; bool dirty_cache = false;