Actions
Bug #4385
closedMissing hosts_ctl() prototype in tcpd.h
Start date:
2013-12-09
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:
Description
According the hosts_access(3) man page the hosts_ctl() prototype should be in tcpd.h:
SYNOPSIS #include "tcpd.h" extern int allow_severity; extern int deny_severity; struct request_info *request_init(request, key, value, ..., 0) struct request_info *request; struct request_info *request_set(request, key, value, ..., 0) struct request_info *request; int hosts_access(request) struct request_info *request; int hosts_ctl(daemon, client_name, client_addr, client_user) char *daemon; char *client_name; char *client_addr; char *client_user;
but it isn't:
$ cat h.c #include "tcpd.h" int main(void) { hosts_ctl(); return (0); } $ gcc -Wimplicit-function-declaration -c h.c h.c: In function ‘main’: h.c:5:2: warning: implicit declaration of function ‘hosts_ctl’ [-Wimplicit-function-declaration] $
The hosts_ctl() prototype should be added to the tcpd.h header file.
Updated by Sachidananda Urs about 9 years ago
- Assignee set to Sachidananda Urs
- % Done changed from 0 to 60
Updated by Sachidananda Urs about 9 years ago
- Status changed from New to Pending RTI
Updated by Rich Lowe about 9 years ago
- Status changed from Pending RTI to Resolved
- % Done changed from 60 to 100
- Tags deleted (
needs-triage)
Resolved in 9b5f588
Actions