diff options
author | Roland McGrath <roland@gnu.org> | 1996-04-28 19:23:12 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-04-28 19:23:12 +0000 |
commit | db04fb4260b06f074f59801064fbf9e787f52f7b (patch) | |
tree | 2f6dada38697dfd09186414f444f1f6c6673887e /libports | |
parent | f89dd27b65eb3fe12309c182e784b46df5d0d65b (diff) |
Add obsolescence link warning.
Diffstat (limited to 'libports')
-rw-r--r-- | libports/allocate-port.c | 12 | ||||
-rw-r--r-- | libports/intern-external-port.c | 6 |
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") |