From 3017fb3605d59cb41c4def4ffd0b7f967f99315d Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Sun, 20 Jan 2008 19:40:42 +0000 Subject: first pass de-K&Rify lib --- lib/ZLocations.c | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'lib/ZLocations.c') 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; -- cgit v1.2.3