- Fix session restoration.

This commit is contained in:
Edward Tomasz Napierala 2007-10-03 12:32:55 +00:00
parent 118bc1dcc5
commit af1f6eecce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=200732
2 changed files with 21 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= lash
PORTVERSION= 0.5.3
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://download.savannah.gnu.org/releases/lash/

View File

@ -0,0 +1,20 @@
--- lashd/client_event.c.orig 2007-09-17 19:10:14.000000000 +0200
+++ lashd/client_event.c 2007-09-17 19:10:50.000000000 +0200
@@ -185,6 +185,7 @@
project_set_name(project, name);
}
+#if 0
err = gethostname(server_name, MAXHOSTNAMELEN);
if (err == -1) {
fprintf(stderr,
@@ -192,6 +193,9 @@
__FUNCTION__, strerror(errno));
strcpy(server_name, "localhost");
}
+#else
+ strcpy(server_name, "localhost");
+#endif
server->projects = lash_list_append(server->projects, project);