commit 0696dbb5f71cca1bb3ce8fdc3359420e89223319 parent 7d7d35ae62a8c6d8699ea4f2d493f4ca5a96e5be Author: Claudio Alessi <smoppy@gmail.com> Date: Sat, 12 Mar 2016 23:33:41 +0100 s/FLDMAXLEN/MAXCOLSZ/g Diffstat:
M | config.def.h | | | 2 | +- |
M | core.c | | | 4 | ++-- |
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/config.def.h b/config.def.h @@ -1,7 +1,7 @@ /* See LICENSE file for copyright and license details. */ #define FLDSEP " | " -#define FLDMAXLEN 19 /* MySQL represents a timestamp in 19 chars. */ +#define MAXCOLSZ 19 /* MySQL represents a timestamp in 19 chars. */ static const char *dbhost = ""; static const char *dbuser = ""; diff --git a/core.c b/core.c @@ -349,10 +349,10 @@ getmaxlengths(View *view) { for(i = 0; i < item->ncols; ++i) { slen = item->lens[i]; if(!lens[i]) { - lens[i] = (slen <= FLDMAXLEN ? slen : FLDMAXLEN); + lens[i] = (slen <= MAXCOLSZ ? slen : MAXCOLSZ); continue; } - if(lens[i] < (slen = item->lens[i]) && slen <= FLDMAXLEN) + if(lens[i] < (slen = item->lens[i]) && slen <= MAXCOLSZ) lens[i] = slen; } }