diff options
author | christos <christos@NetBSD.org> | 2011-08-16 09:26:22 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2011-08-16 09:26:22 +0000 |
commit | 34b5fff1b8d58f2ddaa89336354958daf8506b15 (patch) | |
tree | 09ee1c30254128e6ebf641897fbf6815959369d4 /hack/hack.monst.c | |
parent | 04539cb235b06fd8cacf5c4c40081bd86e0dfa04 (diff) | |
download | bsdgames-darwin-34b5fff1b8d58f2ddaa89336354958daf8506b15.tar.gz bsdgames-darwin-34b5fff1b8d58f2ddaa89336354958daf8506b15.tar.zst bsdgames-darwin-34b5fff1b8d58f2ddaa89336354958daf8506b15.zip |
- document non-literal format strings
- avoid strict aliasing violations, but adding an intermediate function.
Diffstat (limited to 'hack/hack.monst.c')
-rw-r--r-- | hack/hack.monst.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/hack/hack.monst.c b/hack/hack.monst.c index 4c30814e..3eb29b43 100644 --- a/hack/hack.monst.c +++ b/hack/hack.monst.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.monst.c,v 1.6 2003/04/02 18:36:38 jsm Exp $ */ +/* $NetBSD: hack.monst.c,v 1.7 2011/08/16 09:26:22 christos Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.monst.c,v 1.6 2003/04/02 18:36:38 jsm Exp $"); +__RCSID("$NetBSD: hack.monst.c,v 1.7 2011/08/16 09:26:22 christos Exp $"); #endif /* not lint */ #include "hack.h" @@ -142,3 +142,9 @@ const struct permonst pm_wizard = { const struct permonst pm_mail_daemon = {"mail daemon", '2', 100, 1, 10, 0, 0, 0}; #endif /* MAIL */ const struct permonst pm_eel = {"giant eel", ';', 15, 6, -3, 3, 6, 0}; + +void * +monster_private(struct monst *mon) +{ + return mon->mextra; +} |