Permalink
Browse files

file.h: cleanup constness of buffer pointer

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information...
1 parent b673352 commit 073172fa71bd995a8a1498ada9d9c024afd25153 @trofi trofi committed Nov 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/file.h
View
@@ -38,7 +38,7 @@ void fread_fixed(FILE *f, void * _buf, unsigned num_bytes) {
}
void fwrite_fixed(FILE *f, const void * _buf, unsigned num_bytes) {
- char * buf = (char *)_buf;
+ const char * buf = (const char *)_buf;
while (num_bytes != 0)
{

0 comments on commit 073172f

Please sign in to comment.