As announced, the first patch is rather large. It splits fdisk.c into:
fdisk.c,util.c,diskutil.c,fdiskdoslabel.c (and appropriate headers).
Since the original code was a huge hairball closely bound together,
picking out individual hair and putting them on separate heaps has to be
a bit messy. I tried to keep all function semantics, and merely kick
things around. While not always 100% possible, with some dirty help, I
slowly ended up at this patch.
Sent as bz2 attachment because of size.
Attachment:
split-fdisk.patch.bz2
Description: Binary data