diff options
author | Vlad Glagolev <vaygr@users.noreply.github.com> | 2017-10-08 22:17:02 -0400 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2017-10-09 07:47:02 +0530 |
commit | 9638ed148d30954147b5bc8c69949818af2d3c32 (patch) | |
tree | 330147eeb26338b3cb22392b71d66274a9442152 | |
parent | 93aac04474d5fde26b20e998751dcfbd0d8bea25 (diff) | |
download | nnn-9638ed148d30954147b5bc8c69949818af2d3c32.tar.gz |
Fix a couple of warnings on BSDs (#54)
-rw-r--r-- | nnn.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1498,7 +1498,7 @@ show_stats(char *fpath, char *fname, struct stat *sb) dprintf(fd, " File: '%s'", unescape(fname, 0)); /* Show size, blocks, file type */ -#ifdef __APPLE__ +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) dprintf(fd, "\n Size: %-15lld Blocks: %-10lld IO Block: %-6d %s", #else dprintf(fd, "\n Size: %-15ld Blocks: %-10ld IO Block: %-6ld %s", @@ -1506,7 +1506,7 @@ show_stats(char *fpath, char *fname, struct stat *sb) sb->st_size, sb->st_blocks, sb->st_blksize, g_buf); /* Show containing device, inode, hardlink count */ -#ifdef __APPLE__ +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) sprintf(g_buf, "%xh/%ud", sb->st_dev, sb->st_dev); dprintf(fd, "\n Device: %-15s Inode: %-11llu Links: %-9hu", #else |