myadm

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

commit b1370f39366481b60a039b585bad94509421d1ac
parent 27bccc7e7f70ea775c403158a72dc86eac04da70
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Sun, 13 Mar 2016 19:18:04 +0100

Remove maxof().

Diffstat:
Mcore.c | 11-----------
1 file changed, 0 insertions(+), 11 deletions(-)

diff --git a/core.c b/core.c @@ -94,7 +94,6 @@ void flagas(const Arg *arg); Item *getitem(void); int *getmaxlengths(View *view); void itempos(const Arg *arg); -int maxof(int *list, int size); MYSQL_RES *mysql_exec(const char *sqlstr, ...); int mysql_fields(MYSQL_RES *res, Field **fields); int mysql_items(MYSQL_RES *res, Item **items); @@ -371,16 +370,6 @@ itempos(const Arg *arg) { stfl_set(selview->form, L"pos", stfl_ipool_towc(ipool, tmp)); } -int -maxof(int *list, int size) { - int i, max = 0; - - for(i = 0; i < size; ++i) - if(max < list[i]) - max = list[i]; - return max; -} - MYSQL_RES * mysql_exec(const char *sqlstr, ...) { MYSQL_RES *res;