-Setmode can also be caused to fail because of malloc().
authorLiam J. Foy <liamfoy@dragonflybsd.org>
Wed, 22 Dec 2004 11:25:51 +0000 (11:25 +0000)
committerLiam J. Foy <liamfoy@dragonflybsd.org>
Wed, 22 Dec 2004 11:25:51 +0000 (11:25 +0000)
commit853950d81c78b4c81df859c618b60284bb31afa2
tree29274c63515a87cd603aee7ec267d512df5379a8
parente056f0e078e2d15643b32cec492df270f88b9a17
-Setmode can also be caused to fail because of malloc().
 We test to see if setmode() has failed. If it has we check errno.
 If errno == 0 then we have an invalid file mode. If not malloc
 has failed and we the print the error via warn().
-Fix data types (int -> mode_t for getmode())
-Add WARNS?= 6

Ok'ed by: Joerg
usr.bin/uudecode/Makefile
usr.bin/uudecode/uudecode.c