aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-06-24 14:26:53 +0000
committerKalle Wallin <kaw@linux.se>2004-06-24 14:26:53 +0000
commit3f76f8076c3e0a5cfcc14852e7f8badc023e4911 (patch)
tree9649dd86eb67573855f2f32929ea8c1e97c8f73d /src/main.c
parent7070837a6985d3fcc450d60be6ab70cc3d71e089 (diff)
downloadmpd-3f76f8076c3e0a5cfcc14852e7f8badc023e4911.tar.gz
mpd-3f76f8076c3e0a5cfcc14852e7f8badc023e4911.tar.xz
mpd-3f76f8076c3e0a5cfcc14852e7f8badc023e4911.zip
Renamed mpd version macro
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1643 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index f2a0e3d29..f42a2b01c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -82,6 +82,7 @@ void
exit_and_cleanup(void)
{
screen_exit();
+ set_xterm_title("");
printf("\n");
if( mpd )
{
@@ -164,10 +165,7 @@ main(int argc, const char *argv[])
}
/* set xterm title */
-#ifdef DEBUG
- options->enable_xterm_title = 1;
set_xterm_title(PACKAGE " version " VERSION);
-#endif
/* install exit function */
atexit(exit_and_cleanup);
@@ -188,9 +186,11 @@ main(int argc, const char *argv[])
mpd->connection->version[1],
mpd->connection->version[2]);
- if( !MPD_VERSION(mpd, 0,11,0) )
+ /* quit if mpd is pre 0.11.0 - song id not supported by mpd */
+ if( MPD_VERSION_LT(mpd, 0,11,0) )
{
- fprintf(stderr, "MPD version %d.%d.%d is to old (0.11.0 needed).\n",
+ fprintf(stderr,
+ _("Error: MPD version %d.%d.%d is to old (0.11.0 needed).\n"),
mpd->connection->version[0],
mpd->connection->version[1],
mpd->connection->version[2]);