death to trailing whitespace
[openafs.git] / src / kopenafs / test-unlog.c
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /*
11  * Test the kopenafs unlog support.
12  */
13
14 #include <errno.h>
15 #include <stdio.h>
16
17 int
18 main(void)
19 {
20     int status;
21
22     if (k_hasafs()) {
23         printf("Running k_unlog\n");
24         status = k_unlog();
25         printf("Status: %d, errno: %d\n", status, errno);
26     } else {
27         printf("AFS apparently not running\n");
28     }
29 }