From 99a905036b68dd524580a519b1a61b42c68f8d32 Mon Sep 17 00:00:00 2001
From: Rob Landley
Date: Fri, 2 Oct 2026 15:21:34 -0500
Subject: [PATCH] Small cleanups.
---
toys/other/stat.c | 2 +-
www/cleanup.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/toys/other/stat.c b/toys/other/stat.c
index eaf46bf4..5415908f 100644
--- a/toys/other/stat.c
+++ b/toys/other/stat.c
@@ -105,7 +105,7 @@ static void print_stat(char type)
else if (type == 'i') out('u', stat->st_ino);
else if (type == 'm') {
struct mtab_list *mt = xgetmountlist(0);
- dev_t dev = stat->st_rdev ? stat->st_rdev : stat->st_dev;
+ dev_t dev = stat->st_rdev ? : stat->st_dev;
// This mount point could exist multiple times, so show oldest.
for (dlist_terminate(mt); mt; mt = mt->next) if (mt->stat.st_dev == dev) {
diff --git a/www/cleanup.html b/www/cleanup.html
index e3dc15dc..036bde43 100644
--- a/www/cleanup.html
+++ b/www/cleanup.html
@@ -109,7 +109,7 @@ minor bugfix.
Status: COMPLETE
-
+
The uudecode cleanup was my second "explain as I go along" cleanup,
and I tried to do it in smaller stages so it was easier to see what
--
2.39.5