From 34b5fff1b8d58f2ddaa89336354958daf8506b15 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 16 Aug 2011 09:26:22 +0000 Subject: - document non-literal format strings - avoid strict aliasing violations, but adding an intermediate function. --- hack/hack.monst.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'hack/hack.monst.c') 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 #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; +} -- cgit v1.2.3-56-ge451