xref: /illumos-gate/usr/src/lib/krb5/dyn/dyn_paranoid.c (revision 7c478bd9)
1 #pragma ident	"%Z%%M%	%I%	%E% SMI"
2 
3 /*
4  * This file is part of libdyn.a, the C Dynamic Object library.  It
5  * contains the source code for the function DynDebug().
6  *
7  * There are no restrictions on this code; however, if you make any
8  * changes, I request that you document them so that I do not get
9  * credit or blame for your modifications.
10  *
11  * Written by Barr3y Jaspan, Student Information Processing Board (SIPB)
12  * and MIT-Project Athena, 1989.
13  */
14 
15 #include <stdio.h>
16 
17 #include "dynP.h"
18 
DynParanoid(obj,state)19 int DynParanoid(obj, state)
20    DynObjectP obj;
21    int state;
22 {
23      obj->paranoid = state;
24 
25      if (obj->debug)
26 	  fprintf(stderr, "dyn: paranoid: Paranoia set to %d.\n", state);
27      return DYN_OK;
28 }
29