]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev/scsi_id: coding style fixes
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 24 Aug 2018 03:30:38 +0000 (12:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 10 Sep 2018 09:27:36 +0000 (18:27 +0900)
src/udev/scsi_id/scsi_id.c

index 94dadf47b9698a3554ff7da16edfedab9d09b786..2cace552f28e728eec33743eeae675132cfcb523 100644 (file)
@@ -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++ == ' ')