* [PATCH] debugfs: use labs() for absolute value of a long
@ 2016-08-09 20:44 Andreas Dilger
2016-08-10 21:52 ` Theodore Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Dilger @ 2016-08-09 20:44 UTC (permalink / raw)
To: tytso; +Cc: linux-ext4, Andreas Dilger
Use labs() instead of abs() for calculated value of a long int
to quiet warning from LLVM.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
---
debugfs/lsdel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debugfs/lsdel.c b/debugfs/lsdel.c
index e5b2d20..0d74590 100644
--- a/debugfs/lsdel.c
+++ b/debugfs/lsdel.c
@@ -133,7 +133,7 @@ void do_lsdel(int argc, char **argv)
while (ino) {
if ((inode.i_dtime == 0) ||
- (secs && ((unsigned) abs(now - secs) > inode.i_dtime)))
+ (secs && ((unsigned)labs(now - secs) > inode.i_dtime)))
goto next;
lsd.inode = ino;
--
1.8.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-10 21:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-09 20:44 [PATCH] debugfs: use labs() for absolute value of a long Andreas Dilger
2016-08-10 21:52 ` Theodore Ts'o
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.