CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2014/03/09 16:25:06
Modified files:
sbin/fdisk : cmd.c disk.c fdisk.c mbr.c mbr.h misc.c part.c
user.c
Log message:
Instead of passing around 'char buf[DEV_BSIZE]' buffers, pass around
'struct dos_mbr' variables, since that is what the buffers were used
for. Removes need to know about DEV_BSIZE and thus include param.h
from all files but one so move the param.h #include to that file
(mbr.c).
Nuke a bunch of local MBR #defines in favour of the disklabel.h ones.
Remove a bunch of unneeded #includes, replace the odd malloc/bzero
with calloc, replace equally odd bcopy's with memcpy, remove a stray
duplicate MBR parsing in MBR_pcopy().
No intentional functional change.