version: remove product name

We only ship one binary now.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-08 18:53:53 +02:00
parent c95e73ee61
commit 09b166d71e
3 changed files with 5 additions and 6 deletions

View File

@ -382,7 +382,7 @@ main(int argc, char **argv)
switch(opt)
{
case 'v':
eprint_version("awesome");
eprint_version();
break;
case 'h':
exit_help(EXIT_SUCCESS);

View File

@ -30,12 +30,11 @@
* \param executable program name
*/
void
eprint_version(const char *const executable)
eprint_version(void)
{
printf("%s (awesome) " AWESOME_VERSION
printf("awesome " AWESOME_VERSION
" (" AWESOME_RELEASE ")\n"
" • Build:",
executable);
" • Build:");
#if defined(__DATE__) && defined(__TIME__)
printf(" " __DATE__ " " __TIME__);
#endif

View File

@ -22,6 +22,6 @@
#ifndef AWESOME_COMMON_VERSION_H
#define AWESOME_COMMON_VERSION_H
void eprint_version(const char *const executable) __attribute__ ((noreturn));
void eprint_version(void) __attribute__ ((noreturn));
#endif