diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-02 09:16:05 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-11 20:15:06 -0800 |
commit | 3715cd752bac912a56aa1cbb9dd874624a709aab (patch) | |
tree | 2558e6031d81d08dbf35b6b8ecf6060a0487548c /src/fc | |
parent | 8d130ac0fcf19e0e0dd0a404d9317fd8860baad4 (diff) |
Add const attributes to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/fc')
-rw-r--r-- | src/fc/fsio.c | 6 | ||||
-rw-r--r-- | src/fc/fsio.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/fc/fsio.c b/src/fc/fsio.c index 569b3aa..03a689f 100644 --- a/src/fc/fsio.c +++ b/src/fc/fsio.c @@ -369,7 +369,7 @@ _fs_io_fini (FSFpePtr conn) } static int -_fs_do_write(FSFpePtr conn, char *data, long len, long size) +_fs_do_write(FSFpePtr conn, const char *data, long len, long size) { if (size == 0) { #ifdef DEBUG @@ -403,7 +403,7 @@ _fs_do_write(FSFpePtr conn, char *data, long len, long size) * Write the indicated bytes */ int -_fs_write (FSFpePtr conn, char *data, long len) +_fs_write (FSFpePtr conn, const char *data, long len) { return _fs_do_write (conn, data, len, len); } @@ -412,7 +412,7 @@ _fs_write (FSFpePtr conn, char *data, long len) * Write the indicated bytes adding any appropriate pad */ int -_fs_write_pad(FSFpePtr conn, char *data, long len) +_fs_write_pad(FSFpePtr conn, const char *data, long len) { return _fs_do_write (conn, data, len, len + padlength[len & 3]); } diff --git a/src/fc/fsio.h b/src/fc/fsio.h index 1d1b3dd..2bb8e0b 100644 --- a/src/fc/fsio.h +++ b/src/fc/fsio.h @@ -129,8 +129,8 @@ typedef struct _fs_fpe_data { #define FSIO_ERROR -1 extern Bool _fs_reopen_server ( FSFpePtr conn ); -extern int _fs_write ( FSFpePtr conn, char *data, long size ); -extern int _fs_write_pad ( FSFpePtr conn, char *data, long len ); +extern int _fs_write ( FSFpePtr conn, const char *data, long size ); +extern int _fs_write_pad ( FSFpePtr conn, const char *data, long len ); extern int _fs_wait_for_readable ( FSFpePtr conn, int ms ); extern long _fs_pad_length (long len); |