From e2aaa2cb402db09bf510bb877a4f3bfe941514e9 Mon Sep 17 00:00:00 2001 From: pancake Date: Tue, 22 Dec 2009 00:08:47 +0100 Subject: * 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 --- src/query.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/query.c') 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; } -- cgit v1.2.3