mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 14:49:36 -04:00
Fix some compilation warnings.
This commit is contained in:
parent
0db7abdd72
commit
39ea627d62
5 changed files with 17 additions and 13 deletions
|
|
@ -67,18 +67,20 @@ klogin(pw, instance, localhost, password)
|
|||
char *instance, *localhost, *password;
|
||||
{
|
||||
int kerror;
|
||||
AUTH_DAT authdata;
|
||||
KTEXT_ST ticket;
|
||||
struct hostent *hp;
|
||||
unsigned long faddr;
|
||||
char realm[REALM_SZ], savehost[MAXHOSTNAMELEN];
|
||||
char tkt_location[MAXPATHLEN];
|
||||
char *krb_get_phost();
|
||||
extern int noticketsdontcomplain;
|
||||
|
||||
#ifdef KLOGIN_PARANOID
|
||||
#ifdef KLOGIN_PARANOID
|
||||
AUTH_DAT authdata;
|
||||
KTEXT_ST ticket;
|
||||
struct hostent *hp;
|
||||
unsigned long faddr;
|
||||
|
||||
noticketsdontcomplain = 0; /* enable warning message */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Root logins don't use Kerberos.
|
||||
* If we have a realm, try getting a ticket-granting ticket
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ ftpd_popen(program, type)
|
|||
int argc, gargc, pdes[2], pid;
|
||||
char **pop, *argv[100], *gargv[1000];
|
||||
|
||||
if (*type != 'r' && *type != 'w' || type[1])
|
||||
if (((*type != 'r') && (*type != 'w')) || type[1])
|
||||
return (NULL);
|
||||
|
||||
if (!pids) {
|
||||
|
|
|
|||
|
|
@ -697,7 +697,7 @@ do_krb_login(dest)
|
|||
authopts, 0,
|
||||
ticket, "rcmd",
|
||||
instance, dest, (struct sockaddr_in *) 0,
|
||||
kdata, "", (bit_64 *) 0, version);
|
||||
kdata, "", NULL, version);
|
||||
|
||||
if (rc != KSUCCESS)
|
||||
return (rc);
|
||||
|
|
|
|||
|
|
@ -397,7 +397,7 @@ doit(fromp)
|
|||
rc = krb_recvauth(authopts, 0, ticket, "rcmd",
|
||||
instance, &fromaddr,
|
||||
(struct sockaddr_in *) 0,
|
||||
kdata, "", (bit_64 *) 0, version);
|
||||
kdata, "", NULL, version);
|
||||
if (rc != KSUCCESS) {
|
||||
error("Kerberos authentication failure: %s\n",
|
||||
krb_err_txt[rc]);
|
||||
|
|
|
|||
|
|
@ -67,18 +67,20 @@ klogin(pw, instance, localhost, password)
|
|||
char *instance, *localhost, *password;
|
||||
{
|
||||
int kerror;
|
||||
AUTH_DAT authdata;
|
||||
KTEXT_ST ticket;
|
||||
struct hostent *hp;
|
||||
unsigned long faddr;
|
||||
char realm[REALM_SZ], savehost[MAXHOSTNAMELEN];
|
||||
char tkt_location[MAXPATHLEN];
|
||||
char *krb_get_phost();
|
||||
extern int noticketsdontcomplain;
|
||||
|
||||
#ifdef KLOGIN_PARANOID
|
||||
#ifdef KLOGIN_PARANOID
|
||||
AUTH_DAT authdata;
|
||||
KTEXT_ST ticket;
|
||||
struct hostent *hp;
|
||||
unsigned long faddr;
|
||||
|
||||
noticketsdontcomplain = 0; /* enable warning message */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Root logins don't use Kerberos.
|
||||
* If we have a realm, try getting a ticket-granting ticket
|
||||
|
|
|
|||
Loading…
Reference in a new issue