summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-07 16:18:56 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-07 16:18:56 +0000
commitd3f3f6149867c6ccd5d10ac469df1d7af95cbf19 (patch)
tree01639019fa8733355e2188c69ce3103a528ea51b /src/helper
parent081bc0611209ff2d78857a2e9430b77ed7766963 (diff)
downloadopenocd+libswd-d3f3f6149867c6ccd5d10ac469df1d7af95cbf19.tar.gz
openocd+libswd-d3f3f6149867c6ccd5d10ac469df1d7af95cbf19.tar.bz2
openocd+libswd-d3f3f6149867c6ccd5d10ac469df1d7af95cbf19.tar.xz
openocd+libswd-d3f3f6149867c6ccd5d10ac469df1d7af95cbf19.zip
Michael Bruck: fixed warnings
git-svn-id: svn://svn.berlios.de/openocd/trunk@471 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/fileio.c4
-rw-r--r--src/helper/fileio.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/helper/fileio.c b/src/helper/fileio.c
index bb10dbd1..eaf8e0db 100644
--- a/src/helper/fileio.c
+++ b/src/helper/fileio.c
@@ -189,7 +189,7 @@ int fileio_read_u32(fileio_t *fileio, u32 *data)
return ERROR_OK;
}
-int fileio_local_fgets(fileio_t *fileio, u32 size, u8 *buffer)
+int fileio_local_fgets(fileio_t *fileio, u32 size, char *buffer)
{
if( fgets(buffer, size, fileio->file) == NULL)
return ERROR_FILEIO_OPERATION_FAILED;
@@ -197,7 +197,7 @@ int fileio_local_fgets(fileio_t *fileio, u32 size, u8 *buffer)
return ERROR_OK;
}
-int fileio_fgets(fileio_t *fileio, u32 size, u8 *buffer)
+int fileio_fgets(fileio_t *fileio, u32 size, char *buffer)
{
return fileio_local_fgets(fileio, size, buffer);
}
diff --git a/src/helper/fileio.h b/src/helper/fileio.h
index 5f6241d0..17fc40b3 100644
--- a/src/helper/fileio.h
+++ b/src/helper/fileio.h
@@ -59,7 +59,7 @@ typedef struct fileio_s
extern int fileio_write(fileio_t *fileio, u32 size, u8 *buffer, u32 *size_written);
extern int fileio_read(fileio_t *fileio, u32 size, u8 *buffer, u32 *size_read);
-extern int fileio_fgets(fileio_t *fileio, u32 size, u8 *buffer);
+extern int fileio_fgets(fileio_t *fileio, u32 size, char *buffer);
extern int fileio_seek(fileio_t *fileio, u32 position);
extern int fileio_close(fileio_t *fileio);
extern int fileio_open(fileio_t *fileio, char *url, enum fileio_access access, enum fileio_type type);