summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2010-08-09 11:22:10 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2010-08-09 12:01:58 +0200
commitbc3c92cb0e5a219d8f94a8bee6765885dbfc4333 (patch)
tree98208c5f72e06bd45956247bc69328f9e9a89f30 /src/main.c
parent2269c74007cbae25875f76195fdc8d548da8f0ce (diff)
downloadpianobar-windows-bc3c92cb0e5a219d8f94a8bee6765885dbfc4333.tar.gz
pianobar-windows-bc3c92cb0e5a219d8f94a8bee6765885dbfc4333.tar.bz2
pianobar-windows-bc3c92cb0e5a219d8f94a8bee6765885dbfc4333.zip
Make something useful with misc.sync response
Calculcate offset to time() and use that offset to avoid out of sync errors.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 79688d2..4c15698 100644
--- a/src/main.c
+++ b/src/main.c
@@ -138,6 +138,7 @@ int main (int argc, char **argv) {
PianoRequestDataLogin_t reqData;
reqData.user = app.settings.username;
reqData.password = app.settings.password;
+ reqData.step = 0;
BarUiMsg (MSG_INFO, "Login... ");
if (!BarUiPianoCall (&app.ph, PIANO_REQUEST_LOGIN, &app.waith,