Whamcloud - gitweb
misc: fix create_inode warnings with LLVM
authorAndreas Dilger <adilger@dilger.ca>
Tue, 20 May 2014 23:12:22 +0000 (17:12 -0600)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 27 May 2014 16:50:48 +0000 (12:50 -0400)
commit3cbb51f91d7c96774eb59fe9e0abd9864d0554f2
treef83cae3f7532a2081a7642a822dd5ae38fee78dd
parent6bb8845953adc9087f1d1bf3bcb375dbc121254b
misc: fix create_inode warnings with LLVM

Fix name clash in do_mknod_internal() due to local variables named
"major" and "minor" shadowing identical macro names.

Also, no need to set the major and minor device for a FIFO inode.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
misc/create_inode.c