myadm

Simple MySQL client for the terminal
git clone git://git.bitsmanent.org/myadm
Log | Files | Refs | README | LICENSE

commit a4bc0319ebdd2542507b98ae92e78a948de3899f
parent 45e72f790fc16ffe79a045722486147b706e5fde
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Mon, 29 Feb 2016 22:06:33 +0100

Cleanups.

Diffstat:
Mcore.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/core.c b/core.c @@ -102,10 +102,6 @@ static Key keys[] = { /* mode modkey function argument */ { NULL, L"Q", quit, {.i = 1} }, { NULL, L"q", viewprev, {0} }, - { NULL, L"D", setmode, {.v = &modes[0]} }, - { NULL, L"T", setmode, {.v = &modes[1]} }, - { NULL, L"R", setmode, {.v = &modes[2]} }, - { NULL, L"E", setmode, {.v = &modes[3]} }, { NULL, L"k", itempos, {.i = -1} }, { NULL, L"j", itempos, {.i = +1} }, { NULL, L"I", reload, {0} }, @@ -354,7 +350,7 @@ Item * getitem(void) { int pos = atoi(stfl_ipool_fromwc(ipool, stfl_get(selview->form, L"pos"))); int i = 0; - Item *item = NULL; + Item *item; for(item = selview->items; item; item = item->next) if(i++ == pos)