nfs-ganesha 1.4

Connectathon_verif_syntax.c

Go to the documentation of this file.
00001 #include "Connectathon_config_parsing.h"
00002 #include <errno.h>
00003 #include <stdio.h>
00004 
00005 int main(int argc, char **argv)
00006 {
00007   char *filename;
00008   struct testparam *param;
00009 
00010   if((argc > 1) && (argv[1]))
00011     {
00012       filename = argv[1];
00013     }
00014   else
00015     {
00016       fprintf(stderr, "Usage %s <config_file>\n", argv[0]);
00017       return -1;
00018     }
00019 
00020   param = readin_config(filename);
00021   if(param == NULL)
00022     return -1;
00023 
00024   free_testparam(param);
00025 
00026   return 0;
00027 }