summaryrefslogtreecommitdiff
path: root/libports/allocate-port.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-04-28 19:23:12 +0000
committerRoland McGrath <roland@gnu.org>1996-04-28 19:23:12 +0000
commitdb04fb4260b06f074f59801064fbf9e787f52f7b (patch)
tree2f6dada38697dfd09186414f444f1f6c6673887e /libports/allocate-port.c
parentf89dd27b65eb3fe12309c182e784b46df5d0d65b (diff)
Add obsolescence link warning.
Diffstat (limited to 'libports/allocate-port.c')
-rw-r--r--libports/allocate-port.c12
1 files changed, 9 insertions, 3 deletions
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")