Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/hack Use consistent sign in compare, the function is o...



details:   https://anonhg.NetBSD.org/src/rev/b8d627e78e46
branches:  trunk
changeset: 765541:b8d627e78e46
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon May 30 03:11:15 2011 +0000

description:
Use consistent sign in compare, the function is only called with
constants as third argument anyway.

diffstat:

 games/hack/extern.h   |  4 ++--
 games/hack/hack.mon.c |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r d3a8af021104 -r b8d627e78e46 games/hack/extern.h
--- a/games/hack/extern.h       Mon May 30 02:12:02 2011 +0000
+++ b/games/hack/extern.h       Mon May 30 03:11:15 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extern.h,v 1.13 2010/02/03 15:34:38 roy Exp $  */
+/*     $NetBSD: extern.h,v 1.14 2011/05/30 03:11:15 joerg Exp $        */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -249,7 +249,7 @@
 /* hack.mon.c */
 void movemon(void);
 void justswld(struct monst *, const char *);
-void youswld(struct monst *, int, int, const char *);
+void youswld(struct monst *, int, unsigned int, const char *);
 int dochug(struct monst *);
 int m_move(struct monst *, int);
 int mfndpos(struct monst *, coord[9 ], int[9 ], int);
diff -r d3a8af021104 -r b8d627e78e46 games/hack/hack.mon.c
--- a/games/hack/hack.mon.c     Mon May 30 02:12:02 2011 +0000
+++ b/games/hack/hack.mon.c     Mon May 30 03:11:15 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hack.mon.c,v 1.10 2009/08/12 07:28:41 dholland Exp $   */
+/*     $NetBSD: hack.mon.c,v 1.11 2011/05/30 03:11:15 joerg Exp $      */
 
 /*
  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: hack.mon.c,v 1.10 2009/08/12 07:28:41 dholland Exp $");
+__RCSID("$NetBSD: hack.mon.c,v 1.11 2011/05/30 03:11:15 joerg Exp $");
 #endif                         /* not lint */
 
 #include <stdlib.h>
@@ -196,7 +196,7 @@
 }
 
 void
-youswld(struct monst *mtmp, int dam, int die, const char *name)
+youswld(struct monst *mtmp, int dam, unsigned int die, const char *name)
 {
        if (mtmp != u.ustuck)
                return;



Home | Main Index | Thread Index | Old Index