summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-08-10 12:19:28 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-08-10 12:19:28 +0200
commit27acbb09a53b93a2b6f8a6533d346ea6ec1bf80d (patch)
tree577169dbca2603c8bc7bad461a9fbf2780c0ca5d /src
parentb142205f1c0f0a1202c882ff1994a4d3255c28bf (diff)
download0xFFFF-27acbb09a53b93a2b6f8a6533d346ea6ec1bf80d.tar.bz2
Fix compilation
Diffstat (limited to 'src')
-rw-r--r--src/console.c2
-rw-r--r--src/main.c2
-rw-r--r--src/main2.c6
-rw-r--r--src/nolo.c8
-rw-r--r--src/qmode.c4
5 files changed, 11 insertions, 11 deletions
diff --git a/src/console.c b/src/console.c
index e8eac88..75c1871 100644
--- a/src/console.c
+++ b/src/console.c
@@ -107,7 +107,7 @@ static void cmd_badblocks(char *line)
static void cmd_connect(char *line)
{
- connect_via_usb();
+// connect_via_usb();
}
static void cmd_reboot(char *line)
diff --git a/src/main.c b/src/main.c
index 2d40bb3..b6bd452 100644
--- a/src/main.c
+++ b/src/main.c
@@ -26,7 +26,7 @@
#if HAVE_USB
#include <usb.h>
struct usb_device *device = NULL;
-struct usb_dev_handle *dev = NULL;
+extern struct usb_dev_handle *dev = NULL;
#endif
//char *fiasco_image = NULL;
char *boot_cmdline = NULL;
diff --git a/src/main2.c b/src/main2.c
index c360e96..bb30ce4 100644
--- a/src/main2.c
+++ b/src/main2.c
@@ -34,6 +34,8 @@
#include "device.h"
#include "usb-device.h"
#include "cold-flash.h"
+#include "console.h"
+#include "qmode.h"
#undef VERSION
#define VERSION "0.6"
@@ -476,14 +478,14 @@ int main(int argc, char **argv) {
/* console */
if ( console ) {
-// console_prompt();
+ console_prompt();
ret = 0;
goto clean;
}
/* share queues */
if ( queue ) {
-// queue_mode();
+ queue_mode();
ret = 0;
goto clean;
}
diff --git a/src/nolo.c b/src/nolo.c
index c93139c..54c46e7 100644
--- a/src/nolo.c
+++ b/src/nolo.c
@@ -32,9 +32,7 @@
#define CMD_WRITE 64
#define CMD_QUERY 192
-extern char *root_devices[];
-
-extern struct usb_dev_handle *dev;
+struct usb_dev_handle *dev;
/*void check_nolo_order_failed()
{
@@ -394,7 +392,7 @@ int get_root_device()
return -1;
}
- printf("Root device is: %s\n", root_devices[opcode]);
+// printf("Root device is: %s\n", root_devices[opcode]);
return 0;
}
@@ -417,7 +415,7 @@ int set_root_device(unsigned short root_device)
return -1;
}
- printf("Root device set to: %s\n", root_devices[root_device]);
+// printf("Root device set to: %s\n", root_devices[root_device]);
return 0;
}
diff --git a/src/qmode.c b/src/qmode.c
index 79e4de8..ce722d7 100644
--- a/src/qmode.c
+++ b/src/qmode.c
@@ -134,11 +134,11 @@ int queue_mode(void)
} else {
do {
#if HAVE_USB
- if (connect_via_usb()) {
+/* if (connect_via_usb()) {
fprintf(stderr, "Cannot connect to device. It is possibly not in boot stage.\n");
squeue_push2(p, "error", "Cannot connect to the device", 1);
return 0;
- }
+ }*/
#endif
printf("Waiting for a client in shared queues..\n");
setsid();