+2003-01-09 Ken Raeburn <raeburn@mit.edu>
+
+ * krlogind.c (main, recvauth): Use socklen_t when passing
+ addresses to socket functions.
+
2003-01-05 Sam Hartman <hartmans@mit.edu>
* login.c: Remove declaration of errno
{
extern int opterr, optind;
extern char * optarg;
- int on = 1, fromlen, ch;
+ int on = 1, ch;
+ socklen_t fromlen;
struct sockaddr_storage from;
int debug_port = 0;
int fd;
krb5_auth_context auth_context = NULL;
krb5_error_code status;
struct sockaddr_storage peersin, laddr;
- int len;
+ socklen_t len;
krb5_data inbuf;
char v4_instance[INST_SZ]; /* V4 Instance */
krb5_data version;
if (authenticator->checksum) {
struct sockaddr_in adr;
- int adr_length = sizeof(adr);
+ socklen_t adr_length = sizeof(adr);
char * chksumbuf = (char *) malloc(strlen(term)+strlen(lusername)+32);
if (getsockname(netf, (struct sockaddr *) &adr, &adr_length) != 0)
goto error_cleanup;
+2003-01-09 Ken Raeburn <raeburn@mit.edu>
+
+ * ftp.c (hookup, initconn, dataconn): Use socklen_t when passing
+ address to socket functions.
+
2002-11-08 Ken Raeburn <raeburn@mit.edu>
* main.c (makeargv): Report an error if parsed arguments won't fit
hookup(char* host, int port)
{
register struct hostent *hp = 0;
- int s, len;
+ int s;
+ socklen_t len;
#ifdef IP_TOS
#ifdef IPTOS_LOWDELAY
int tos;
static int initconn()
{
register char *p, *a;
- int result, len, tmpno = 0;
+ int result, tmpno = 0;
+ socklen_t len;
int on = 1;
#ifndef NO_PASSIVE_MODE
int a1,a2,a3,a4,p1,p2;
FILE *
dataconn(char *lmode)
{
- int s, fromlen = sizeof (hisdataaddr);
+ int s;
+ socklen_t fromlen = sizeof (hisdataaddr);
#ifdef IP_TOS
#ifdef IPTOS_LOWDELAY
int tos;
+2003-01-09 Ken Raeburn <raeburn@mit.edu>
+
+ * telnetd.c (main): Use socklen_t when passing address to socket
+ functions.
+
2003-01-07 Ken Raeburn <raeburn@mit.edu>
* Makefile.orig: Deleted.
char *argv[];
{
struct sockaddr_storage from;
- int on = 1, fromlen;
+ int on = 1;
+ socklen_t fromlen;
register int ch;
extern char *optarg;
extern int optind;
/* XXX Convert this to support getaddrinfo, ipv6, etc. */
if (debug) {
- int s, ns, foo;
+ int s, ns;
+ socklen_t foo;
struct servent *sp;
static struct sockaddr_in sin4 = { AF_INET };
+2003-01-09 Ken Raeburn <raeburn@mit.edu>
+
+ * server.c (main): Use socklen_t when passing address to socket
+ functions.
+
2002-08-29 Ken Raeburn <raeburn@mit.edu>
* Makefile.in: Revert $(S)=>/ change, for Windows support.
char *argv[];
{
krb5_data pname_data, tkt_data;
- int l, sock = 0;
+ int sock = 0;
+ socklen_t l;
int retval;
struct sockaddr_in l_inaddr, f_inaddr; /* local, foreign address */
krb5_creds creds, *new_creds;
int one = 1;
int acc;
struct servent *sp;
- int namelen = sizeof(f_inaddr);
+ socklen_t namelen = sizeof(f_inaddr);
if ((sock = socket(PF_INET, SOCK_STREAM, 0)) < 0) {
com_err("uu-server", errno, "creating socket");
+2003-01-09 Ken Raeburn <raeburn@mit.edu>
+
+ * ovsec_kadmd.c (do_schpw): Use socklen_t when passing address to
+ socket functions.
+
2003-01-07 Ken Raeburn <raeburn@mit.edu>
* Makefile.ov: Deleted.
char req[1500];
int len;
struct sockaddr_in from;
- int fromlen;
+ socklen_t fromlen;
krb5_keytab kt;
krb5_data reqdata, repdata;
int s2;
+2003-01-09 Ken Raeburn <raeburn@mit.edu>
+
+ * admin_server.c (kadm_listen): Use socklen_t when passing address
+ to socket functions.
+
2003-01-07 Ken Raeburn <raeburn@mit.edu>
* Makefile.ov: Deleted.
int peer_fd;
fd_set mask, readfds;
struct sockaddr_in peer;
- int addrlen;
+ socklen_t addrlen;
int pid;
#ifdef POSIX_SIGNALS
struct sigaction new_act;
+2003-01-09 Ken Raeburn <raeburn@mit.edu>
+
+ * adm_conn.c (kadm_contact_server): Use socklen_t when passing
+ address to socket functions.
+
2002-11-05 Tom Yu <tlyu@mit.edu>
* kpasswd.c (kpwd_change_prompt_1, kpwd_change_prompt_2)
struct sockaddr_in in_local;
struct sockaddr_in in_remote;
- int addr_len;
+ socklen_t addr_len;
const char *realm_admin_names[4];
char *realm_name;