]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blobdiff - zephyr/lib/ZLocations.c
r4254@bucket (orig r244): kcr | 2008-01-20 14:40:42 -0500
[1ts-debian.git] / zephyr / lib / ZLocations.c
index 11e4a7a9ab4d1bbe3caa155111a6bc2c0073fa67..5b7be10321111bf425c49eda74e9e0b3a197377f 100644 (file)
@@ -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);
@@ -94,18 +96,18 @@ char *ZParseExposureLevel(text)
 }
 
 /* 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(&notice->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;