]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r204665
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 14 May 2014 15:22:42 +0000 (15:22 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 14 May 2014 15:22:42 +0000 (15:22 +0000)
commit48720e88d4b883957c8146ffc77c16e8d96262f2
treee8f72ec065a459b60e22d6ceb1b3ec84a68dc8c1
parent8a8e1ecdb51f3304d9e0236ec4918e0fff7a0cba
MFC: r204665

- Make function of finding an available drive name a macro.
- Move check of /dev/ prefix and copy into a function to save code duplication.
  This also fixes a bug where the /dev/ prefix could not be used when creating
  volumes on the command line.

MFC: r209051

Initialize variables before usage.

Found by: clang static analyzer
Found by: Coverity Prevent[tm] (CID 7736, 7760)

MFC: r215704

Fix some more warnings found by clang.

MFC: r229915

Fix warning when compiling with gcc46.

git-svn-id: svn://svn.freebsd.org/base/stable/8@266028 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/gvinum/gvinum.c