diff options
author | Russ Allbery <rra@debian.org> | 2015-04-26 19:09:49 -0700 |
---|---|---|
committer | Russ Allbery <rra@debian.org> | 2015-04-26 19:09:49 -0700 |
commit | d2aad177022072f2acc85d4651335b81ff448ed4 (patch) | |
tree | 90b4d9233bab83129f169d8bd72e68cb8fbf34ea /bearoffdump.c | |
parent | 4fc50f48fa6f878421fed91d30f54520edfb384f (diff) |
Imported Upstream version 1.05.000
Diffstat (limited to 'bearoffdump.c')
-rw-r--r-- | bearoffdump.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/bearoffdump.c b/bearoffdump.c index 1b50636..8079fc8 100644 --- a/bearoffdump.c +++ b/bearoffdump.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: bearoffdump.c,v 1.21 2014/07/09 20:32:49 plm Exp $ + * $Id: bearoffdump.c,v 1.22 2015/02/08 15:09:09 plm Exp $ */ #include "config.h" @@ -41,12 +41,9 @@ main(int argc, char **argv) { char *filename, *szPosID = NULL; - int id = 0; + unsigned int id = 0; bearoffcontext *pbc; char sz[4096]; - int n; - int nUs; - int nThem; TanBoard anBoard; GOptionEntry ao[] = { @@ -84,7 +81,7 @@ main(int argc, char **argv) if (!id) { printf("Position ID : %s\n", szPosID); } else { - printf("Position number : %d\n", id); + printf("Position number : %u\n", id); } /* This is needed since we call ReadBearoffFile() from bearoff.c */ @@ -112,7 +109,9 @@ main(int argc, char **argv) PositionFromID(anBoard, szPosID); } else { - printf("\n" "Dump of position#: %d\n\n", id); + unsigned int n, nUs, nThem; + + printf("\n" "Dump of position#: %u\n\n", id); n = Combination(pbc->nPoints + pbc->nChequers, pbc->nPoints); nUs = id / n; |