X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=fsed.cpm.c;fp=fsed.cpm.c;h=380082f7d4b664fd3b794781e864dff05286fd33;hb=224b4e6d27a3af235500d9d8028ddbd3a60af7ed;hp=9e1592d9f96edc09084b9527a2da0331af951144;hpb=9d1b9d0a2b6515be3cec895654af126aaddd21b3;p=debian%2Fcpmtools diff --git a/fsed.cpm.c b/fsed.cpm.c index 9e1592d..380082f 100644 --- a/fsed.cpm.c +++ b/fsed.cpm.c @@ -10,6 +10,10 @@ #include #include "cpmfs.h" + +#ifdef USE_DMALLOC +#include +#endif /*}}}*/ extern char **environ; @@ -220,18 +224,18 @@ int main(int argc, char *argv[]) /*{{{*/ { /* display position and load data */ /*{{{*/ clear(); - move(2,0); printw("Byte %8d (0x%08x) ",pos,pos); + move(2,0); printw("Byte %8lu (0x%08lx) ",pos,pos); if (pos<(drive.boottrk*drive.sectrk*drive.secLength)) { - printw("Physical sector %3d ",((pos/drive.secLength)%drive.sectrk)+1); + printw("Physical sector %3lu ",((pos/drive.secLength)%drive.sectrk)+1); } else { - printw("Sector %3d ",((pos/drive.secLength)%drive.sectrk)+1); + printw("Sector %3lu ",((pos/drive.secLength)%drive.sectrk)+1); printw("(physical %3d) ",drive.skewtab[(pos/drive.secLength)%drive.sectrk]+1); } - printw("Offset %5d ",pos%drive.secLength); - printw("Track %5d",pos/(drive.secLength*drive.sectrk)); + printw("Offset %5lu ",pos%drive.secLength); + printw("Track %5lu",pos/(drive.secLength*drive.sectrk)); move(LINES-3,0); printw("N)ext track P)revious track"); move(LINES-2,0); printw("n)ext record p)revious record f)orward byte b)ackward byte"); move(LINES-1,0); printw("i)nfo q)uit");