-/* $NetBSD: hack.do.c,v 1.8 2009/06/07 18:30:39 dholland Exp $ */
+/* $NetBSD: hack.do.c,v 1.11 2011/08/06 20:29:37 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.do.c,v 1.8 2009/06/07 18:30:39 dholland Exp $");
+__RCSID("$NetBSD: hack.do.c,v 1.11 2011/08/06 20:29:37 dholland Exp $");
#endif /* not lint */
/* Contains code for 'd', 'D' (drop), '>', '<' (up, down) and 't' (throw) */
-#include "hack.h"
-#include "extern.h"
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
+#include "hack.h"
+#include "extern.h"
static int drop(struct obj *);
+static void dropy(struct obj *);
int
dodrop(void)
if (Invisible)
newsym(u.ux, u.uy);
}
- free((char *) obj);
+ free(obj);
return (1);
}
if (obj->owornmask & (W_ARMOR | W_RING)) {
dropy(obj);
}
-void
+static void
dropy(struct obj *obj)
{
if (obj->otyp == CRYSKNIFE)