summaryrefslogtreecommitdiff
path: root/lib/ZLocations.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ZLocations.c')
-rw-r--r--lib/ZLocations.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/lib/ZLocations.c b/lib/ZLocations.c
index e157342..9b580bc 100644
--- a/lib/ZLocations.c
+++ b/lib/ZLocations.c
@@ -23,9 +23,9 @@ static char rcsid_ZLocations_c[] =
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;
@@ -56,26 +56,28 @@ Code_t ZInitLocationInfo(hostname, tty)
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);
@@ -93,11 +95,11 @@ char *ZParseExposureLevel(text)
return(NULL);
}
-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;