]> git.ipfire.org Git - thirdparty/coreutils.git/commit
df: simplify via xasprintf
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Nov 2024 01:16:14 +0000 (17:16 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Nov 2024 07:41:18 +0000 (23:41 -0800)
commit612e64e132e3ef57f25176b07dc6d2be89398c0b
tree953878a23b45b1260cb3f95721c20da0d4dab413
parent3e1c94d273d32ad1a46331ae8833e1a78160d395
df: simplify via xasprintf

* src/df.c: Include xvasprintf.h.
(get_header, get_dev): Simplify by using xasprintf and xstrdup
rather than doing the error checking ourselves.
src/df.c