summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorpancake <pancake@dazo>2008-12-08 00:21:05 +0100
committerpancake <pancake@dazo>2008-12-08 00:21:05 +0100
commit3d427bfd7740731bfc203b047d557af564975cf6 (patch)
treeffef9e82ba45e75d03679aed04b4086d57d6bba7 /src/utils.c
parentedac98d26ee29bbdc3e16be8ecec5cbfff80482f (diff)
download0xFFFF-3d427bfd7740731bfc203b047d557af564975cf6.tar.bz2
* Added -n flag to do not write to disk or flash (simulation)
* Added -S flag to specify subversion id manually while flashing or dumping * Fixed support for the last fiasco image - Skip paddings - More verbose output while parsing FIASCO headers * Initial implementation of the full direct FIASCO flasher - No need to dump manually before flashing * Some warnings and code cleanup * Fix building issue * Add HAVE_GUI directive in config.mk * Up to version 0.4
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c
index 2f4efbb..24872ed 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -22,7 +22,7 @@
#include <stdarg.h>
#include <stdlib.h>
-unsigned long get_file_size(char *file)
+unsigned long get_file_size(const char *file)
{
FILE *fd = fopen(file, "r");
unsigned long len = 0;
@@ -53,7 +53,7 @@ void progressbar(unsigned long long part, unsigned long long total)
squeue_push2(p, "bar", msg, 0);
} else {
#endif
- printf("\e[K %3d%% [", pc);
+ printf("\x1b[K %3d%% [", pc);
if (columns)
cols = atoi(columns);
cols-=15;