From db04fb4260b06f074f59801064fbf9e787f52f7b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 28 Apr 1996 19:23:12 +0000 Subject: Add obsolescence link warning. --- libports/allocate-port.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'libports/allocate-port.c') diff --git a/libports/allocate-port.c b/libports/allocate-port.c index 950ffc8e..61e093c8 100644 --- a/libports/allocate-port.c +++ b/libports/allocate-port.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by Michael I. Bushnell. @@ -21,8 +21,8 @@ #include "ports.h" /* Backward compatibility. */ -void *ports_allocate_port (struct port_bucket *bucket, - size_t size, +void *ports_allocate_port (struct port_bucket *bucket, + size_t size, struct port_class *class) { void *result; @@ -30,3 +30,9 @@ void *ports_allocate_port (struct port_bucket *bucket, result = 0; return result; } + + +#include "linkwarn.h" + +link_warning (ports_allocate_port, + "ports_allocate_port is obsolete; use ports_create_port instead") -- cgit v1.2.3