summaryrefslogtreecommitdiff
path: root/clients/zlocate
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2008-01-20 20:46:45 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2008-01-20 20:46:45 +0000
commitfc8abb852f17e00ed7fd265e8e448e6e9537bab7 (patch)
tree77499715261118d5d09ced011fc4a0a7887b3cc1 /clients/zlocate
parent938001f468fd4b17efa90c423720b950c7d9d05a (diff)
de K&Rify; drop xzwrite, zmailnotify && zpopnotify from Makefile
Diffstat (limited to 'clients/zlocate')
-rw-r--r--clients/zlocate/zlocate.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/clients/zlocate/zlocate.c b/clients/zlocate/zlocate.c
index 4469565..9f048f3 100644
--- a/clients/zlocate/zlocate.c
+++ b/clients/zlocate/zlocate.c
@@ -21,21 +21,23 @@ static const char rcsid_zlocate_c[] = "$Id$";
int numusers=0, numleft=0, parallel=0, oneline=0;
char *whoami;
-RETSIGTYPE timeout(sig)
+RETSIGTYPE
+timeout(int sig)
{
fprintf (stderr, "%s: no response from server\n", whoami);
exit(1);
}
-void usage()
+void
+usage(void)
{
printf("Usage: %s [ -a | -d ] [ -p ] [ -1 ] user ... \n",whoami);
exit(1);
}
-void print_locs(user,nlocs)
- char *user;
- int nlocs;
+void
+print_locs(char *user,
+ int nlocs)
{
int one = 1, retval;
ZLocations_t locations;
@@ -65,9 +67,9 @@ void print_locs(user,nlocs)
}
/*ARGSUSED*/
-main(argc,argv)
- int argc;
- char *argv[];
+int
+main(int argc,
+ char *argv[])
{
char user[BUFSIZ],*whichuser;
ZAsyncLocateData_t ald;