Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/makefs No need to use ceilf() when ceil() is alread...
details: https://anonhg.NetBSD.org/src/rev/7e42ba5e3548
branches: trunk
changeset: 365809:7e42ba5e3548
user: reinoud <reinoud%NetBSD.org@localhost>
date: Tue Apr 26 13:27:24 2022 +0000
description:
No need to use ceilf() when ceil() is already used
diffstat:
usr.sbin/makefs/udf.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6345aa410f78 -r 7e42ba5e3548 usr.sbin/makefs/udf.c
--- a/usr.sbin/makefs/udf.c Tue Apr 26 13:26:30 2022 +0000
+++ b/usr.sbin/makefs/udf.c Tue Apr 26 13:27:24 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf.c,v 1.26 2022/04/26 13:26:30 reinoud Exp $ */
+/* $NetBSD: udf.c,v 1.27 2022/04/26 13:27:24 reinoud Exp $ */
/*
* Copyright (c) 2006, 2008, 2013, 2021, 2022 Reinoud Zandijk
@@ -30,7 +30,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: udf.c,v 1.26 2022/04/26 13:26:30 reinoud Exp $");
+__RCSID("$NetBSD: udf.c,v 1.27 2022/04/26 13:27:24 reinoud Exp $");
#include <stdio.h>
#include <stdlib.h>
@@ -1218,7 +1218,7 @@
if (context.format_flags & FORMAT_META)
printf("Metadata percentage %d%% (%d%% used)\n",
context.meta_perc,
- (int) ceilf(100.0*stats.nmetadatablocks/stats.ndatablocks));
+ (int) ceil(100.0*stats.nmetadatablocks/stats.ndatablocks));
printf("\n");
/* prefix */
Home |
Main Index |
Thread Index |
Old Index