diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-08-24 12:30:38 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-10 18:27:36 +0900 |
commit | 057fc051a49710b64db7781af40d7963a11f29ba (patch) | |
tree | 6acddbcf732be4c493bac19920ae2e371e63f6a4 /src/udev/scsi_id | |
parent | efc2774c25814d611bc489fec5e0872a37d707f2 (diff) | |
download | systemd-057fc051a49710b64db7781af40d7963a11f29ba.tar.gz systemd-057fc051a49710b64db7781af40d7963a11f29ba.tar.bz2 systemd-057fc051a49710b64db7781af40d7963a11f29ba.zip |
udev/scsi_id: coding style fixes
Diffstat (limited to 'src/udev/scsi_id')
-rw-r--r-- | src/udev/scsi_id/scsi_id.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/udev/scsi_id/scsi_id.c b/src/udev/scsi_id/scsi_id.c index 94dadf47b9..2cace552f2 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++ == ' ') |