summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-07-22 20:13:00 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-07-22 20:13:00 +0000
commita80cfbc3d7ebc5ebe8775652687a26e6e02247b6 (patch)
treed01609749358bee945f908154dffb2194e90b56f /flashrom.c
parentfcbdbbc0d4da0b600556d51cd048e01b3a19d582 (diff)
downloadast2050-flashrom-a80cfbc3d7ebc5ebe8775652687a26e6e02247b6.zip
ast2050-flashrom-a80cfbc3d7ebc5ebe8775652687a26e6e02247b6.tar.gz
Eliminate version string duplication
Corresponding to flashrom svn r659. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c
index 95db7d9..11efd25 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -30,6 +30,7 @@
#include "flash.h"
#include "flashchips.h"
+const char *flashrom_version = FLASHROM_VERSION;
char *chip_to_probe = NULL;
int verbose = 0;
int programmer = PROGRAMMER_INTERNAL;
@@ -503,7 +504,7 @@ void usage(const char *name)
void print_version(void)
{
- printf("flashrom v%s\n", FLASHROM_VERSION);
+ printf("flashrom v%s\n", flashrom_version);
}
int main(int argc, char *argv[])
OpenPOWER on IntegriCloud