blockdev: coding style fix
Sync with README.devel Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
75737ad645
commit
baaa447911
|
@ -199,8 +199,8 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out)
|
|||
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
static int
|
||||
find_cmd(char *s) {
|
||||
static int find_cmd(char *s)
|
||||
{
|
||||
size_t j;
|
||||
|
||||
for (j = 0; j < ARRAY_SIZE(bdcms); j++)
|
||||
|
@ -214,8 +214,8 @@ void report_header(void);
|
|||
void report_device(char *device, int quiet);
|
||||
void report_all_devices(void);
|
||||
|
||||
int
|
||||
main(int argc, char **argv) {
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int fd, d, j, k;
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
|
@ -227,7 +227,8 @@ main(int argc, char **argv) {
|
|||
|
||||
/* -V not together with commands */
|
||||
if (!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version")) {
|
||||
printf(_("%s (%s)\n"), program_invocation_short_name, PACKAGE_STRING);
|
||||
printf(_("%s (%s)\n"), program_invocation_short_name,
|
||||
PACKAGE_STRING);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help"))
|
||||
|
@ -277,8 +278,8 @@ main(int argc, char **argv) {
|
|||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
void
|
||||
do_commands(int fd, char **argv, int d) {
|
||||
void do_commands(int fd, char **argv, int d)
|
||||
{
|
||||
int res, i, j;
|
||||
int iarg;
|
||||
unsigned int uarg;
|
||||
|
@ -304,7 +305,8 @@ do_commands(int fd, char **argv, int d) {
|
|||
if (res == 0)
|
||||
printf("%lld\n", llu);
|
||||
else
|
||||
errx(EXIT_FAILURE, _("could not get device size"));
|
||||
errx(EXIT_FAILURE,
|
||||
_("could not get device size"));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -403,8 +405,8 @@ do_commands(int fd, char **argv, int d) {
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
report_all_devices(void) {
|
||||
void report_all_devices(void)
|
||||
{
|
||||
FILE *procpt;
|
||||
char line[200];
|
||||
char ptname[200];
|
||||
|
@ -427,8 +429,8 @@ report_all_devices(void) {
|
|||
fclose(procpt);
|
||||
}
|
||||
|
||||
void
|
||||
report_device(char *device, int quiet) {
|
||||
void report_device(char *device, int quiet)
|
||||
{
|
||||
int fd;
|
||||
int ro, ssz, bsz;
|
||||
long ra;
|
||||
|
@ -460,7 +462,7 @@ report_device(char *device, int quiet) {
|
|||
close(fd);
|
||||
}
|
||||
|
||||
void
|
||||
report_header() {
|
||||
void report_header()
|
||||
{
|
||||
printf(_("RO RA SSZ BSZ StartSec Size Device\n"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue