Linux: Remove prototype warning inhibition
[openafs.git] / src / kopenafs / test-setpag.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 setpag support.
12  */
13
14 #include <errno.h>
15 #include <stdio.h>
16
17 int
18 main(int argc, char *argv[])
19 {
20     int status;
21
22     if (k_hasafs()) {
23         printf("Running k_setpag\n");
24         status = k_setpag();
25         printf("Status: %d, errno: %d\n", status, errno);
26         if (argc > 1) {
27             argv++;
28             execvp(argv[0], argv);
29         }
30     } else {
31         printf("AFS apparently not running\n");
32     }
33 }