mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2025-04-21 12:27:27 +03:00
fixed some compiler warnings, smaller copyright headers
This commit is contained in:
@@ -1,27 +1,16 @@
|
||||
/*
|
||||
* put all the configure operate to this file
|
||||
*
|
||||
* (C) Copyright 2009
|
||||
* Author: Marek Lindner <lindner_marek@yahoo.de>
|
||||
* Authors: Marek Lindner <lindner_marek@yahoo.de>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* version 3 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA
|
||||
* as published by the Free Software Foundation; either version
|
||||
* 3 of the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <confuse.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include "ingenic_cfg.h"
|
||||
#include "usb_boot_defines.h"
|
||||
|
||||
@@ -142,7 +131,7 @@ int check_dump_cfg(struct hand *hand)
|
||||
int parse_configure(struct hand *hand, char * file_path)
|
||||
{
|
||||
if (access(file_path, F_OK)) {
|
||||
fprintf(stderr, "Error - can't read file: %s\n",
|
||||
fprintf(stderr, "Error - can't read file %s: %s\n",
|
||||
file_path, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
@@ -188,7 +177,7 @@ int parse_configure(struct hand *hand, char * file_path)
|
||||
cfg_t *cfg;
|
||||
cfg = cfg_init(opts, 0);
|
||||
if (cfg_parse(cfg, file_path) == CFG_PARSE_ERROR) {
|
||||
fprintf(stderr, "Error - can't read file: %s\n",
|
||||
fprintf(stderr, "Error - can't read file %s: %s\n",
|
||||
file_path, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user