simplify + use trololo instead of nyancat

This commit is contained in:
Laurent Sansonetti
2012-03-23 20:26:44 +01:00
parent b5be0472eb
commit cc6c7b43c8
2 changed files with 5 additions and 14 deletions

View File

@@ -260,7 +260,7 @@ device_subscribe_cb(am_device_notif_context_t ctx)
static void
usage(void)
{
system("open http://www.youtube.com/watch?v=QH2-TGUlwu4");
system("open http://www.youtube.com/watch?v=1orMXD_Ijbs&feature=fvst");
//fprintf(stderr, "usage: deploy [-d] <path-to-app>\n");
exit(1);
}

View File

@@ -296,23 +296,14 @@ start_capture(id delegate)
if (repl_fd_lock == nil) {
repl_fd_lock = [NSLock new];
}
[repl_fd_lock lock];
if (![self sendString:expression]) {
goto bail;
}
NSString *res = nil;
while (true) {
if ([self sendString:expression]) {
res = [self receiveString];
if (res == nil) {
goto bail;
}
break;
}
bail:
[repl_fd_lock unlock];
return res;
}
@@ -474,7 +465,7 @@ bail:
static void
usage(void)
{
system("open http://www.youtube.com/watch?v=QH2-TGUlwu4");
system("open http://www.youtube.com/watch?v=1orMXD_Ijbs&feature=fvst");
exit(1);
}