+2001-12-06 Ezra Peisach <epeisach@mit.edu>
+
+ * configure.in: Add KRB5_GETSOCKNAME_ARGS and KRB5_GETPEERNAME_ARGS
+
+ * kprop.c, kpropd.c: Use GETSOCKNAME_ARG3_TYPE and
+ GETPEERNAME_ARG3_TYPE.
+
2001-10-09 Ken Raeburn <raeburn@mit.edu>
* kprop.c, kpropd.c: Make prototypes unconditional.
#include "com_err.h"
#include "kprop.h"
+#ifndef GETSOCKNAME_ARG3_TYPE
+#define GETSOCKNAME_ARG3_TYPE unsigned int
+#endif
+
static char *kprop_version = KPROP_PROT_VERSION;
char *progname = 0;
struct hostent *hp;
register struct servent *sp;
struct sockaddr_in my_sin;
- unsigned int socket_length;
+ GETSOCKNAME_ARG3_TYPE socket_length;
hp = gethostbyname(host);
if (hp == NULL) {
#include "kprop.h"
+#ifndef GETSOCKNAME_ARG3_TYPE
+#define GETSOCKNAME_ARG3_TYPE unsigned int
+#endif
+#ifndef GETPEERNAME_ARG3_TYPE
+#define GETPEERNAME_ARG3_TYPE unsigned int
+#endif
+
#if defined(NEED_DAEMON_PROTO)
extern int daemon(int, int);
#endif
struct sockaddr_in my_sin, frominet;
struct servent *sp;
int finet, s;
- unsigned int fromlen;
+ GETPEERNAME_ARG3_TYPE fromlen;
int ret;
finet = socket(AF_INET, SOCK_STREAM, 0);
{
struct sockaddr_in from;
int on = 1;
- unsigned int fromlen;
+ GETPEERNAME_ARG3_TYPE fromlen;
struct hostent *hp;
krb5_error_code retval;
krb5_data confmsg;
krb5_error_code retval;
krb5_ticket * ticket;
struct sockaddr_in r_sin;
- unsigned int sin_length;
+ GETSOCKNAME_ARG3_TYPE sin_length;
krb5_keytab keytab = NULL;
/*