aboutsummaryrefslogtreecommitdiff
path: root/libports
diff options
context:
space:
mode:
Diffstat (limited to 'libports')
-rw-r--r--libports/allocate-port.c12
-rw-r--r--libports/intern-external-port.c6
2 files changed, 14 insertions, 4 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")
diff --git a/libports/intern-external-port.c b/libports/intern-external-port.c
index d6182188..8ece48e4 100644
--- a/libports/intern-external-port.c
+++ b/libports/intern-external-port.c
@@ -1,4 +1,4 @@
-/*
+/*
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
@@ -31,3 +31,7 @@ void *ports_intern_external_port (struct port_bucket *bucket,
result = 0;
return result;
}
+
+#include "linkwarn.h"
+link_warning (ports_intern_external_port,
+ "ports_intern_external_port is obsolete; use ports_import_port")