mirror of
https://github.com/AltraMayor/f3.git
synced 2025-08-03 18:46:00 -04:00
Make all applications share the same version
This commit is contained in:
parent
b7790256f0
commit
99dab5ca08
@ -4,8 +4,10 @@
|
|||||||
#include <argp.h>
|
#include <argp.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
/* Argp's global variables. */
|
/* Argp's global variables. */
|
||||||
const char *argp_program_version = "F3 Probe 1.0";
|
const char *argp_program_version = "F3 Probe " F3_STR_VERSION;
|
||||||
|
|
||||||
/* Arguments. */
|
/* Arguments. */
|
||||||
static char adoc[] = "<BLOCK_DEV>";
|
static char adoc[] = "<BLOCK_DEV>";
|
||||||
|
3
utils.c
3
utils.c
@ -8,6 +8,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
|
|
||||||
|
#include "version.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
const char *adjust_unit(double *ptr_bytes)
|
const char *adjust_unit(double *ptr_bytes)
|
||||||
@ -209,7 +210,7 @@ const long *ls_my_files(const char *path, long start_at, long end_at)
|
|||||||
void print_header(FILE *f, const char *name)
|
void print_header(FILE *f, const char *name)
|
||||||
{
|
{
|
||||||
fprintf(f,
|
fprintf(f,
|
||||||
"F3 %s 4.0\n"
|
"F3 %s " F3_STR_VERSION "\n"
|
||||||
"Copyright (C) 2010 Digirati Internet LTDA.\n"
|
"Copyright (C) 2010 Digirati Internet LTDA.\n"
|
||||||
"This is free software; see the source for copying conditions.\n"
|
"This is free software; see the source for copying conditions.\n"
|
||||||
"\n", name);
|
"\n", name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user