Warnings: format string issue.
[gnushogi.git] / gnushogi / sizetest.c
index fd20378..f3d7b0f 100644 (file)
@@ -6,6 +6,7 @@
  * ----------------------------------------------------------------------
  * Copyright (c) 1993, 1994, 1995 Matthias Mutz
  * Copyright (c) 1999 Michael Vanier and the Free Software Foundation
+ * Copyright (c) 2008, 2013, 2014 Yann Dirson and the Free Software Foundation
  *
  * GNU SHOGI is based on GNU CHESS
  *
@@ -31,7 +32,6 @@
  *
  */
 
-#include "version.h"
 #include "gnushogi.h"
 
 #include <signal.h>
@@ -244,7 +244,7 @@ main(int argc, char **argv)
     n = 0;
 #endif
 
-    printf("history:\t%4d\tkByte\t[unsigned short:%d "
+    printf("history:\t%4d\tkByte\t[unsigned short:%lu "
            "* HISTORY_SIZE:%ld]\n",
            n, sizeof(unsigned short), (long)HISTORY_SIZE);