BSD 4_3_Net_2 development
[unix-history] / usr / src / contrib / isode / psap / pe_expunge.c
CommitLineData
9e8e5516
C
1/* pe_expunge.c - expunge a PE */
2
3#ifndef lint
4static char *rcsid = "$Header: /f/osi/psap/RCS/pe_expunge.c,v 7.2 91/02/22 09:36:13 mrose Interim $";
5#endif
6
7/*
8 * $Header: /f/osi/psap/RCS/pe_expunge.c,v 7.2 91/02/22 09:36:13 mrose Interim $
9 *
10 *
11 * $Log: pe_expunge.c,v $
12 * Revision 7.2 91/02/22 09:36:13 mrose
13 * Interim 6.8
14 *
15 * Revision 7.1 91/02/12 18:32:46 mrose
16 * upate
17 *
18 * Revision 7.0 89/11/23 22:13:03 mrose
19 * Release 6.0
20 *
21 */
22
23/*
24 * NOTICE
25 *
26 * Acquisition, use, and distribution of this module and related
27 * materials are subject to the restrictions of a license agreement.
28 * Consult the Preface in the User's Manual for the full terms of
29 * this agreement.
30 *
31 */
32
33
34/* LINTLIBRARY */
35
36#include <stdio.h>
37#include "psap.h"
38
39/* \f */
40
41PE pe_expunge (pe, r)
42PE pe,
43 r;
44{
45 if (r) {
46 if (pe == r)
47 return r;
48
49 if (pe_extract (pe, r))
50 if (pe -> pe_realbase && !r -> pe_realbase) {
51 r -> pe_realbase = pe -> pe_realbase;
52 pe -> pe_realbase = NULL;
53 }
54
55 r -> pe_refcnt++;
56 }
57
58 pe_free (pe);
59
60 return r;
61}