$NetBSD: patch-ad,v 1.2 2003/09/01 10:17:35 cjep Exp $
--- display.c.orig	2003-08-08 13:50:59.000000000 +0100
+++ display.c	2003-08-08 14:10:45.000000000 +0100
@@ -144,7 +144,7 @@
 
   move(0,0);
   for (i = 0; i < nbBytes; i += lineLength) displayLine(i, nbBytes);
-  for (; i < page; i += lineLength) PRINTW(("%08lX\n", base + i))
+  for (; i < page; i += lineLength) PRINTW(("%08" INT_FMT "\n", base + i))
 
   attrset(NORMAL);
   move(LINES - 1, 0);
@@ -153,8 +153,8 @@
   if (isReadOnly) i = '%';
   else if (edited) i = '*';
   else i = '-';
-  printw("-%c%c  %s       --0x%llX", i, i, baseName, base + cursor);
-  if (MAX(fileSize, lastEditedLoc)) printw("/0x%llX", getfilesize());
+  printw("-%c%c  %s       --0x%" INT_FMT, i, i, baseName, base + cursor);
+  if (MAX(fileSize, lastEditedLoc)) printw("/0x%" INT_FMT, getfilesize());
   if (option == bySector) printw("--sector %d", (base + cursor) / SECTOR_SIZE);
 
   move(cursor / lineLength, computeCursorXCurrentPos());
@@ -164,7 +164,7 @@
 {
   int i;
 
-  PRINTW(("%08lX   ", base + offset))
+  PRINTW(("%08" INT_FMT "   ", base + offset))
   for (i = offset; i < offset + lineLength; i++) {
      if (i > offset) MAXATTRPRINTW(bufferAttr[i] & MARKED, (((i - offset) % blocSize) ? " " : "  "))
      if (i < max) ATTRPRINTW(bufferAttr[i], ("%02X", buffer[i]))
