aboutsummaryrefslogtreecommitdiff
path: root/tests/gcfver.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gcfver.c')
-rw-r--r--tests/gcfver.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/gcfver.c b/tests/gcfver.c
index b5c9bab..65b01d3 100644
--- a/tests/gcfver.c
+++ b/tests/gcfver.c
@@ -1,4 +1,4 @@
1/* grecs - Gray's Extensible Configuration System 1/* argot - Gray's Extensible Configuration System
2 Copyright (C) 2007-2016 Sergey Poznyakoff 2 Copyright (C) 2007-2016 Sergey Poznyakoff
3 3
4 Grecs is free software; you can redistribute it and/or modify it 4 Grecs is free software; you can redistribute it and/or modify it
@@ -18,12 +18,12 @@
18# include <config.h> 18# include <config.h>
19#endif 19#endif
20#include <stdlib.h> 20#include <stdlib.h>
21#include "grecs.h" 21#include "argot.h"
22 22
23int 23int
24main(int argc, char **argv) 24main(int argc, char **argv)
25{ 25{
26 struct grecs_version_info *vinfo; 26 struct argot_version_info *vinfo;
27 int res; 27 int res;
28 28
29 if (argc > 3) { 29 if (argc > 3) {
@@ -31,12 +31,12 @@ main(int argc, char **argv)
31 exit(1); 31 exit(1);
32 } 32 }
33 if (argc == 2) 33 if (argc == 2)
34 exit(!grecs_version_ok(argv[1])); 34 exit(!argot_version_ok(argv[1]));
35 if (argc == 3) 35 if (argc == 3)
36 exit(grecs_version_cmp(argv[1], argv[2], &res) ? 1 : 36 exit(argot_version_cmp(argv[1], argv[2], &res) ? 1 :
37 res == 0 ? 0 : res < 0 ? 2 : 3); 37 res == 0 ? 0 : res < 0 ? 2 : 3);
38 /* Default action: */ 38 /* Default action: */
39 vinfo = grecs_version(); 39 vinfo = argot_version();
40 printf("package: %s\n", vinfo->package); 40 printf("package: %s\n", vinfo->package);
41 printf("version: %s\n", vinfo->version); 41 printf("version: %s\n", vinfo->version);
42 printf("major: %d\n", vinfo->major); 42 printf("major: %d\n", vinfo->major);
@@ -46,7 +46,7 @@ main(int argc, char **argv)
46 if (vinfo->suffix && vinfo->suffix[0]) 46 if (vinfo->suffix && vinfo->suffix[0])
47 printf(" %s", vinfo->suffix); 47 printf(" %s", vinfo->suffix);
48 putchar('\n'); 48 putchar('\n');
49 grecs_version_info_free(vinfo); 49 argot_version_info_free(vinfo);
50 exit(0); 50 exit(0);
51} 51}
52 52

Return to:

Send suggestions and report system problems to the System administrator.