Deleted Added
sdiff udiff text old ( 44744 ) new ( 56977 )
full compact
1 /*
2 * Routines for controlled update/initialization of request structures.
3 *
4 * request_init() initializes its argument. Pointers and string-valued members
5 * are initialized to zero, to indicate that no lookup has been attempted.
6 *
7 * request_set() adds information to an already initialized request structure.
8 *
9 * Both functions take a variable-length name-value list.
10 *
11 * Diagnostics are reported through syslog(3).
12 *
13 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
14 */
15
16#ifndef lint
17static char sccsid[] = "@(#) update.c 1.1 94/12/28 17:42:56";
18#endif
19
20/* System libraries */
21

--- 19 unchanged lines hidden (view full) ---

41 switch (key) {
42 default:
43 tcpd_warn("request_fill: invalid key: %d", key);
44 return (request);
45 case RQ_FILE:
46 request->fd = va_arg(ap, int);
47 continue;
48 case RQ_CLIENT_SIN:
49 request->client->sin = va_arg(ap, struct sockaddr_in *);
50 continue;
51 case RQ_SERVER_SIN:
52 request->server->sin = va_arg(ap, struct sockaddr_in *);
53 continue;
54
55 /*
56 * All other fields are strings with the same maximal length.
57 */
58
59 case RQ_DAEMON:
60 ptr = request->daemon;

--- 59 unchanged lines hidden ---