summaryrefslogtreecommitdiff
path: root/lib/ZLocations.c
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2008-01-20 19:40:42 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2008-01-20 19:40:42 +0000
commit3017fb3605d59cb41c4def4ffd0b7f967f99315d (patch)
treec690b0c00d780759eb48d8f11af30d429a916382 /lib/ZLocations.c
parentf87e7cd5f4295337f9bc07895c3e2a43c5c65a94 (diff)
first pass de-K&Rify lib
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;