diff options
author | pancake <none@none> | 2009-12-22 00:08:47 +0100 |
---|---|---|
committer | pancake <none@none> | 2009-12-22 00:08:47 +0100 |
commit | e2aaa2cb402db09bf510bb877a4f3bfe941514e9 (patch) | |
tree | 25ef992d5a49a977e587cd6e11e18a1be7b7e599 /src/query.c | |
parent | 4d7899fa4034393ce835f749c3ab64e83d12b590 (diff) | |
download | 0xFFFF-e2aaa2cb402db09bf510bb877a4f3bfe941514e9.tar.bz2 |
* Add C files of the gui, so it can be built without gtkamlc or valac * Fix build of gui.gtkaml (sync with last vala) * Update version number in gui about dialog * Some syntax cleanup and removed some unnecesary printf calls
Diffstat (limited to 'src/query.c')
-rw-r--r-- | src/query.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/query.c b/src/query.c index 4510d43..77a8b33 100644 --- a/src/query.c +++ b/src/query.c @@ -1,6 +1,6 @@ /* * 0xFFFF - Open Free Fiasco Firmware Flasher - * Copyright (C) 2007,2008 pancake <@youterm.com> + * Copyright (C) 2007-2009 pancake <@youterm.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -46,8 +46,7 @@ int get_status() */ int set_usb_mode(unsigned int mode) { - if (mode > 1) - { + if (mode > 1) { printf("Invalid USB mode specified '%d'.\n", mode); return -1; } @@ -336,7 +335,6 @@ int get_nolo_version() return 0; } - int get_sw_version() { int ret; @@ -357,8 +355,8 @@ int get_sw_version() if (bytes[0]) { sprintf(strbuf, "Software Version: %s\n", bytes); printf("Software Version: %s\n", bytes); //???+strlen(bytes)+1)); - } else - printf("No software version detected\n"); + } else printf("No software version detected\n"); + return 1; } |