mirror of
https://github.com/jarun/nnn.git
synced 2025-01-27 03:06:39 +00:00
Minor refactor
This commit is contained in:
parent
c373b4b279
commit
bde25e3ca0
|
@ -151,7 +151,6 @@
|
||||||
#define F_NOTRACE 0x04 /* suppress stdout and strerr (no traces) */
|
#define F_NOTRACE 0x04 /* suppress stdout and strerr (no traces) */
|
||||||
#define F_NORMAL 0x08 /* spawn child process in non-curses regular CLI mode */
|
#define F_NORMAL 0x08 /* spawn child process in non-curses regular CLI mode */
|
||||||
#define F_CMD 0x10 /* run command - show results before exit (must have F_NORMAL) */
|
#define F_CMD 0x10 /* run command - show results before exit (must have F_NORMAL) */
|
||||||
|
|
||||||
#define F_CLI (F_NORMAL | F_MULTI)
|
#define F_CLI (F_NORMAL | F_MULTI)
|
||||||
|
|
||||||
/* CRC8 macros */
|
/* CRC8 macros */
|
||||||
|
@ -666,7 +665,6 @@ static size_t xstrlcpy(char *dest, const char *src, size_t n)
|
||||||
size_t len = strlen(src) + 1, blocks;
|
size_t len = strlen(src) + 1, blocks;
|
||||||
const uint _WSHIFT = (LONG_SIZE == 8) ? 3 : 2;
|
const uint _WSHIFT = (LONG_SIZE == 8) ? 3 : 2;
|
||||||
|
|
||||||
|
|
||||||
if (n > len)
|
if (n > len)
|
||||||
n = len;
|
n = len;
|
||||||
else if (len > n)
|
else if (len > n)
|
||||||
|
|
Loading…
Reference in a new issue