use roken_*

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3693 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-10-29 01:25:14 +00:00
parent 8cb8048e74
commit f5fc784fff
2 changed files with 4 additions and 4 deletions

View File

@@ -418,7 +418,7 @@ doit (char *hostname, char *remote_user, int port, int argc, char **argv)
cmd_len = construct_command(&cmd, argc, argv); cmd_len = construct_command(&cmd, argc, argv);
hostent = gethostbyname (hostname); hostent = roken_gethostbyname (hostname);
if (hostent == NULL) if (hostent == NULL)
errx (1, "gethostbyname '%s' failed: %s", errx (1, "gethostbyname '%s' failed: %s",
hostname, hostname,
@@ -522,7 +522,7 @@ main(int argc, char **argv)
usage (1); usage (1);
if (port_str) { if (port_str) {
struct servent *s = getservbyname (port_str, "tcp"); struct servent *s = roken_getservbyname (port_str, "tcp");
if (s) if (s)
port = s->s_port; port = s->s_port;

View File

@@ -549,7 +549,7 @@ main(int argc, char **argv)
int port = 0; int port = 0;
set_progname (argv[0]); set_progname (argv[0]);
openlog ("rshd", LOG_ODELAY | LOG_PID, LOG_AUTH); roken_openlog ("rshd", LOG_ODELAY | LOG_PID, LOG_AUTH);
while ((c = getopt(argc, argv, "ixp:")) != EOF) { while ((c = getopt(argc, argv, "ixp:")) != EOF) {
switch (c) { switch (c) {
@@ -560,7 +560,7 @@ main(int argc, char **argv)
do_encrypt = 1; do_encrypt = 1;
break; break;
case 'p': { case 'p': {
struct servent *s = getservbyname (optarg, "tcp"); struct servent *s = roken_getservbyname (optarg, "tcp");
if (s) if (s)
port = s->s_port; port = s->s_port;