From 82c61ff66619e80ec9068ff7cc71bffca5368346 Mon Sep 17 00:00:00 2001 From: Wang Renxin Date: Thu, 30 Jun 2016 12:22:41 +0800 Subject: [PATCH] *polished code. --- shell/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shell/main.c b/shell/main.c index 9cb6fba..8fe1e62 100755 --- a/shell/main.c +++ b/shell/main.c @@ -194,7 +194,8 @@ static int _cmp_size_t(const void* l, const void* r) { return 1; else if(*pl < *pr) return -1; - else return 0; + else + return 0; } static void _tidy_mem_pool(bool_t force) { @@ -1221,6 +1222,7 @@ static int_t _ticks(void) { rv = gettimeofday(&now, 0); if(rv) return 0; + ts.tv_sec = now.tv_sec; ts.tv_nsec = now.tv_usec * 1000;