summaryrefslogtreecommitdiffstats
path: root/lkm
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-04-02 03:38:29 +0000
committerache <ache@FreeBSD.org>1997-04-02 03:38:29 +0000
commit3c64721fa7494c5d4170f9381313141a91458b8b (patch)
treea342976832358f8c83403ab479e866772ac07d25 /lkm
parente15367f402853296b0c91403b1ca75dc982eae71 (diff)
downloadFreeBSD-src-3c64721fa7494c5d4170f9381313141a91458b8b.zip
FreeBSD-src-3c64721fa7494c5d4170f9381313141a91458b8b.tar.gz
Remove unused USE_PERROR define and syslog.h include
Use snprintf instead of sprintf to avoid buffer overflows Use snprintf in uu_lockerr instead of lots of hardcoded constants and not null-terminated strncpy Return "" for OK and "device in use" for INUSE, it allows simple strcpy(buf, uu_lockerr(retcode)) without testing for special OK case (NULL was there) and obtaining meaningful result for INUSE ("" was there) without special testing for it too.
Diffstat (limited to 'lkm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud