aboutsummaryrefslogtreecommitdiff
path: root/audio/pianobar/files/patch-main.c
diff options
context:
space:
mode:
authorJosh Paetzel <jpaetzel@FreeBSD.org>2012-05-14 23:43:18 +0000
committerJosh Paetzel <jpaetzel@FreeBSD.org>2012-05-14 23:43:18 +0000
commit9e09a439b9f7caa8850db50ad72bd114f6dbdf93 (patch)
treebf367d0ed40ad61d713f134915150bb73a10b634 /audio/pianobar/files/patch-main.c
parent3ea1cde66b4daa66d4afcec23efb1a27573de0c6 (diff)
Update to 2012.05.06
PR: ports/167889 Submitted by: John Hixson Sponsored by: iXsystems
Notes
Notes: svn path=/head/; revision=296628
Diffstat (limited to 'audio/pianobar/files/patch-main.c')
-rw-r--r--audio/pianobar/files/patch-main.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/audio/pianobar/files/patch-main.c b/audio/pianobar/files/patch-main.c
index 021da4f02a0c..e69de29bb2d1 100644
--- a/audio/pianobar/files/patch-main.c
+++ b/audio/pianobar/files/patch-main.c
@@ -1,36 +0,0 @@
---- src/main.c.orig 2012-04-24 11:09:20.000000000 -0700
-+++ src/main.c 2012-04-26 16:07:03.000000000 -0700
-@@ -77,10 +77,32 @@
- WaitressReturn_t wRet;
- PianoRequestDataLogin_t reqData;
- bool ret;
-+ WaitressHandle_t waithSync;
-+ char *syncTime;
-+ unsigned long int syncTimeInt;
-+
-+ /* skip sync step by fetching time from somewhere else */
-+ WaitressInit (&waithSync);
-+ WaitressSetUrl (&waithSync, "http://ridetheclown.com/s2/synctime.php");
-+ if (app->settings.proxy != NULL && strlen (app->settings.proxy) > 0) {
-+ WaitressSetProxy (&waithSync, app->settings.proxy);
-+ }
-+ wRet = WaitressFetchBuf (&waithSync, &syncTime);
-+ WaitressFree (&waithSync);
-+ if (wRet != WAITRESS_RET_OK) {
-+ BarUiMsg (&app->settings, MSG_ERR, "Unable to sync: %s\n",
-+ WaitressErrorToStr (wRet));
-+ return false;
-+ }
-+
-+ syncTimeInt = strtoul (syncTime, NULL, 0);
-+ app->ph.timeOffset = time (NULL) - syncTimeInt;
-+ free (syncTime);
-+
-
- reqData.user = app->settings.username;
- reqData.password = app->settings.password;
-- reqData.step = 0;
-+ reqData.step = 1;
-
- BarUiMsg (&app->settings, MSG_INFO, "Login... ");
- ret = BarUiPianoCall (app, PIANO_REQUEST_LOGIN, &reqData, &pRet, &wRet);