]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage_conf: Fix the coding stype in storage_conf.c
authorOsier Yang <jyang@redhat.com>
Thu, 16 May 2013 12:40:50 +0000 (20:40 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 20 May 2013 11:59:18 +0000 (19:59 +0800)
commitc8a3cf89f3681811922a9fdda5e4afbb1147e066
tree4cff652ebd9c43d7b72c42e79b31360811af1b2a
parent479d5991cda49045fbe2620ba6efd273a67742d8
storage_conf: Fix the coding stype in storage_conf.c

Changes:
  * Remove the useless space in "for" statement (e.g.
    for (i = 0 ; i < something ; i++)

  * Change the function's style to:
    void
    foo(bar)
    {
        printf("foo is not bar\n");
    }

  * Don't lose "{}" for "if...else" branches if one of the branch
    has more than one line block. Example of the old ones:
    if (a) {
        printf("a is not funny");
    } else
        printf("a is funny");

  * Remove the 1 space before "goto" label.

  * Remove the useless blank line(s)

  * Add blank line if it can make the code more clear to eyes.
src/conf/storage_conf.c