om

om - the most recently modified file in a directory
git clone git://git.larryhynes.net/om
Log | Files | Refs | README

commit b9fafe616caf9a982f374fbcfba538693ed588d1
parent 14c7498730e026001d73731f1fbb1fec39af16c0
Author: Larry Hynes <larry@larryhynes.com>
Date:   Fri Apr 14 19:20:57 +0100

Whitespace nits

Diffstat:
om.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/om.c b/om.c @@ -15,7 +15,7 @@ int isadir() { struct stat sb; - if (stat (dir, &sb) == 0 && S_ISDIR(sb.st_mode)) + if (stat(dir, &sb) == 0 && S_ISDIR(sb.st_mode)) { return 0; } @@ -38,7 +38,7 @@ om(const char* dir, char* rcnt) dirp = opendir(dir); if (dirp != NULL) { - while ((ent = readdir (dirp)) != NULL) { + while ((ent = readdir(dirp)) != NULL) { if (ent->d_type == DT_REG) { snprintf(buf, MAX_LEN, "%s/%s", dir, ent->d_name); stat(buf, &sb);