projects
/
dss.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix --config-file for relative paths.
[dss.git]
/
df.c
diff --git
a/df.c
b/df.c
index 1c2531f9980f31bfb0731805ecd1bd7f5d88e326..7fb319e0ba866746d7e223a4114b0f4f986dc17e 100644
(file)
--- a/
df.c
+++ b/
df.c
@@
-1,8
+1,4
@@
-/*
- * Copyright (C) 2008-2010 Andre Noll <maan@systemlinux.org>
- *
- * Licensed under the GPL v2. For licencing details see COPYING.
- */
+/* SPDX-License-Identifier: GPL-2.0 */
#include <sys/statvfs.h>
#include <stdio.h>
#include <assert.h>
#include <sys/statvfs.h>
#include <stdio.h>
#include <assert.h>
@@
-18,7
+14,7
@@
int get_disk_space(const char *path, struct disk_space *result)
{
int get_disk_space(const char *path, struct disk_space *result)
{
- /*
using floats allows to not care about integer overflows
*/
+ /*
With floats we don't need to care about integer overflows.
*/
float total_blocks, available_blocks, blocksize;
float total_inodes, available_inodes;
float total_blocks, available_blocks, blocksize;
float total_inodes, available_inodes;