mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Minor changes
This commit is contained in:
parent
9d134a3796
commit
cd2bdc5991
6
nnn.c
6
nnn.c
|
@ -31,12 +31,12 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/statvfs.h>
|
#include <sys/statvfs.h>
|
||||||
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
|
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
|
||||||
# include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/event.h>
|
#include <sys/event.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#define BSD_KQUEUE
|
#define BSD_KQUEUE
|
||||||
#else
|
#else
|
||||||
# include <sys/sysmacros.h>
|
#include <sys/sysmacros.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
|
||||||
|
@ -1514,7 +1514,7 @@ show_stats(char *fpath, char *fname, struct stat *sb)
|
||||||
sprintf(g_buf, "%lxh/%lud", sb->st_dev, sb->st_dev);
|
sprintf(g_buf, "%lxh/%lud", sb->st_dev, sb->st_dev);
|
||||||
dprintf(fd, "\n Device: %-15s Inode: %-11lu Links: %-9lu",
|
dprintf(fd, "\n Device: %-15s Inode: %-11lu Links: %-9lu",
|
||||||
#endif
|
#endif
|
||||||
g_buf, sb->st_ino, sb->st_nlink);
|
g_buf, sb->st_ino, sb->st_nlink);
|
||||||
|
|
||||||
/* Show major, minor number for block or char device */
|
/* Show major, minor number for block or char device */
|
||||||
if (perms[0] == 'b' || perms[0] == 'c')
|
if (perms[0] == 'b' || perms[0] == 'c')
|
||||||
|
|
Loading…
Reference in a new issue