diff options
Diffstat (limited to '')
| -rw-r--r-- | project/src/wimgt.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/project/src/wimgt.c b/project/src/wimgt.c index 4acb1c1..4abd6b6 100644 --- a/project/src/wimgt.c +++ b/project/src/wimgt.c @@ -82,28 +82,7 @@ static void help_exit ( bool xmode ) static void print_version_section ( bool print_sect_header ) { - if (print_sect_header) - fputs("[version]\n",stdout); - - const u32 base = 0x04030201; - const u8 * e = (u8*)&base; - const u32 endian = be32(e); - - printf( "prog=" WIMGT_SHORT "\n" - "name=" WIMGT_LONG "\n" - "version=" VERSION "\n" - "beta=%d\n" - "revision=" REVISION "\n" - "system=" SYSTEM "\n" - "endian=%u%u%u%u %s\n" - "author=" AUTHOR "\n" - "date=" DATE "\n" - "url=" URI_HOME WIMGT_SHORT "\n" - "\n" - , BETA_VERSION - , e[0], e[1], e[2], e[3] - , endian == 0x01020304 ? "little" - : endian == 0x04030201 ? "big" : "mixed" ); + cmd_version_section(print_sect_header,WIMGT_SHORT,WIMGT_LONG); } /////////////////////////////////////////////////////////////////////////////// |
