Mercurial > hg > toybox
comparison toys/posix/df.c @ 897:849e14fecf2b
Convert getmountlist() to xgetmountlist().
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 10 May 2013 18:57:01 -0500 |
parents | 6cc69be43c42 |
children | c05343c592fa |
comparison
equal
deleted
inserted
replaced
896:79855f5dc085 | 897:849e14fecf2b |
---|---|
106 if ((toys.optflags&(FLAG_P|FLAG_k)) == FLAG_P) TT.units = 512; | 106 if ((toys.optflags&(FLAG_P|FLAG_k)) == FLAG_P) TT.units = 512; |
107 printf("Filesystem %ld-blocks Used Available Capacity Mounted on\n", | 107 printf("Filesystem %ld-blocks Used Available Capacity Mounted on\n", |
108 TT.units); | 108 TT.units); |
109 } else puts("Filesystem\t1K-blocks\tUsed Available Use% Mounted on"); | 109 } else puts("Filesystem\t1K-blocks\tUsed Available Use% Mounted on"); |
110 | 110 |
111 mtlist = getmountlist(1); | 111 mtlist = xgetmountlist(); |
112 | 112 |
113 // If we have a list of filesystems on the command line, loop through them. | 113 // If we have a list of filesystems on the command line, loop through them. |
114 if (*toys.optargs) { | 114 if (*toys.optargs) { |
115 char **next; | 115 char **next; |
116 | 116 |