/*
- * $Id: auth.c,v 1.32 2002-10-12 04:02:46 didg Exp $
+ * $Id: auth.c,v 1.33 2002-10-12 16:42:31 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
*rbuflen = 0;
- ibuf++;
- ibuflen--;
+ ibuf += 2;
+ ibuflen -= 2;
memcpy(&type, ibuf, sizeof(type));
type = ntohs(type);
pid_t token;
*rbuflen = 0;
- ibuf++;
+ ibuf += 2;
memcpy(&type, ibuf, sizeof(type));
type = ntohs(type);
/*
- * $Id: switch.c,v 1.10 2002-10-12 13:46:09 didg Exp $
+ * $Id: switch.c,v 1.11 2002-10-12 16:42:31 didg Exp $
*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
/* add a new function if it's specified. return the old function in
* "old" if there's a pointer there. */
int uam_afpserver_action(const int id, const int which,
- int (**new)(), int (**old)())
+ int (*new)(), int (**old)())
{
switch (which) {
case UAM_AFPSERVER_PREAUTH:
if (old)
*old = preauth_switch[id];
if (new)
- preauth_switch[id] = *new;
+ preauth_switch[id] = new;
break;
case UAM_AFPSERVER_POSTAUTH:
if (old)
*old = postauth_switch[id];
if (new)
- postauth_switch[id] = *new;
+ postauth_switch[id] = new;
break;
default:
LOG(log_debug, logtype_afpd, "uam_afpserver_action: unknown switch %d[%d]",
#define UAM_AFPSERVER_POSTAUTH (1 << 0)
extern int uam_afpserver_action __P((const int /*id*/, const int /*switch*/,
- int (**)(), int (**)()));
+ int (*)(), int (**)()));
#endif