From: Yu Watanabe Date: Fri, 24 Aug 2018 03:30:38 +0000 (+0900) Subject: udev/scsi_id: coding style fixes X-Git-Tag: v240~725^2~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=057fc051a49710b64db7781af40d7963a11f29ba;p=thirdparty%2Fsystemd.git udev/scsi_id: coding style fixes --- diff --git a/src/udev/scsi_id/scsi_id.c b/src/udev/scsi_id/scsi_id.c index 94dadf47b96..2cace552f28 100644 --- a/src/udev/scsi_id/scsi_id.c +++ b/src/udev/scsi_id/scsi_id.c @@ -53,8 +53,7 @@ static char model_enc_str[256]; static char revision_str[16]; static char type_str[16]; -static void set_type(const char *from, char *to, size_t len) -{ +static void set_type(const char *from, char *to, size_t len) { int type_num; char *eptr; const char *type = "generic"; @@ -99,8 +98,7 @@ static void set_type(const char *from, char *to, size_t len) * Return a pointer to the NUL terminated string, returns NULL if no * matches. */ -static char *get_value(char **buffer) -{ +static char *get_value(char **buffer) { static const char *quote_string = "\"\n"; static const char *comma_string = ",\n"; char *val; @@ -128,8 +126,7 @@ static char *get_value(char **buffer) return val; } -static int argc_count(char *opts) -{ +static int argc_count(char *opts) { int i = 0; while (*opts != '\0') if (*opts++ == ' ')