static char host[MAXHOSTNAMELEN], mytty[MAXPATHLEN];
static int location_info_set = 0;
-Code_t ZInitLocationInfo(hostname, tty)
- char *hostname;
- char *tty;
+Code_t
+ZInitLocationInfo(char *hostname,
+ char *tty)
{
char *ttyp, *p;
struct hostent *hent;
return (ZERR_NONE);
}
-Code_t ZSetLocation(exposure)
- char *exposure;
+Code_t
+ZSetLocation(char *exposure)
{
return (Z_SendLocation(LOGIN_CLASS, exposure, ZAUTH,
"$sender logged in to $1 on $3 at $2"));
}
-Code_t ZUnsetLocation()
+Code_t
+ZUnsetLocation(void)
{
return (Z_SendLocation(LOGIN_CLASS, LOGIN_USER_LOGOUT, ZNOAUTH,
"$sender logged out of $1 on $3 at $2"));
}
-Code_t ZFlushMyLocations()
+Code_t
+ZFlushMyLocations(void)
{
return (Z_SendLocation(LOGIN_CLASS, LOGIN_USER_FLUSH, ZAUTH, ""));
}
-char *ZParseExposureLevel(text)
- char *text;
+char *
+ZParseExposureLevel(char *text)
{
if (!strcasecmp(text, EXPOSE_NONE))
return (EXPOSE_NONE);
}
/* lifted from lib/ZSendPkt.c wait_for_hmack, but waits for SERVACK instead */
-static int wait_for_srvack(notice, uid)
- ZNotice_t *notice;
- ZUnique_Id_t *uid;
+static int
+wait_for_srvack(ZNotice_t *notice,
+ ZUnique_id_t *uid)
{
return (notice->z_kind == SERVACK && ZCompareUID(¬ice->z_uid, uid));
}
-Code_t Z_SendLocation(class, opcode, auth, format)
- char *class;
- char *opcode;
- Z_AuthProc auth;
- char *format;
+Code_t
+Z_SendLocation(char *class,
+ char *opcode,
+ Z_AuthProc auth,
+ char *format)
{
int retval;
time_t ourtime;