@@ -112,7 +112,7 @@ fio_redirect(int in, int out, int err)
112112}
113113
114114void
115- fio_error (int rc , int size , char const * file , int line )
115+ fio_error (int rc , int size , const char * file , int line )
116116{
117117 if (remote_agent )
118118 {
@@ -192,7 +192,7 @@ pread(int fd, void* buf, size_t size, off_t off)
192192
193193#ifdef WIN32
194194static int
195- remove_file_or_dir (char const * path )
195+ remove_file_or_dir (const char * path )
196196{
197197 int rc = remove (path );
198198
@@ -287,7 +287,7 @@ fio_get_agent_version(void)
287287
288288/* Open input stream. Remote file is fetched to the in-memory buffer and then accessed through Linux fmemopen */
289289FILE *
290- fio_open_stream (fio_location location , char const * path )
290+ fio_open_stream (fio_location location , const char * path )
291291{
292292 FILE * f ;
293293 if (fio_is_remote (location ))
@@ -340,7 +340,7 @@ fio_close_stream(FILE* f)
340340
341341/* Open directory */
342342DIR *
343- fio_opendir (fio_location location , char const * path )
343+ fio_opendir (fio_location location , const char * path )
344344{
345345 DIR * dir ;
346346 if (fio_is_remote (location ))
@@ -432,7 +432,7 @@ fio_closedir(DIR *dir)
432432
433433/* Open file */
434434int
435- fio_open (fio_location location , char const * path , int mode )
435+ fio_open (fio_location location , const char * path , int mode )
436436{
437437 int fd ;
438438 if (fio_is_remote (location ))
@@ -500,7 +500,7 @@ fio_disconnect(void)
500500
501501/* Open stdio file */
502502FILE *
503- fio_fopen (fio_location location , char const * path , char const * mode )
503+ fio_fopen (fio_location location , const char * path , const char * mode )
504504{
505505 FILE * f = NULL ;
506506
@@ -546,7 +546,7 @@ fio_fopen(fio_location location, char const* path, char const* mode)
546546
547547/* Format output to file stream */
548548int
549- fio_fprintf (FILE * f , char const * format , ...)
549+ fio_fprintf (FILE * f , const char * format , ...)
550550{
551551 int rc ;
552552 va_list args ;
@@ -1112,7 +1112,7 @@ fio_read(int fd, void* buf, size_t size)
11121112
11131113/* Get information about file */
11141114int
1115- fio_stat (fio_location location , char const * path , struct stat * st , bool follow_symlink )
1115+ fio_stat (fio_location location , const char * path , struct stat * st , bool follow_symlink )
11161116{
11171117 if (fio_is_remote (location ))
11181118 {
@@ -1149,7 +1149,7 @@ fio_stat(fio_location location, char const* path, struct stat* st, bool follow_s
11491149 * in windows compare only filenames
11501150 */
11511151bool
1152- fio_is_same_file (fio_location location , char const * filename1 , char const * filename2 , bool follow_symlink )
1152+ fio_is_same_file (fio_location location , const char * filename1 , const char * filename2 , bool follow_symlink )
11531153{
11541154#ifndef WIN32
11551155 struct stat stat1 , stat2 ;
@@ -1213,7 +1213,7 @@ fio_readlink(fio_location location, const char *path, char *value, size_t valsiz
12131213
12141214/* Check presence of the file */
12151215int
1216- fio_access (fio_location location , char const * path , int mode )
1216+ fio_access (fio_location location , const char * path , int mode )
12171217{
12181218 if (fio_is_remote (location ))
12191219 {
@@ -1245,7 +1245,7 @@ fio_access(fio_location location, char const* path, int mode)
12451245
12461246/* Create symbolic link */
12471247int
1248- fio_symlink (fio_location location , char const * target , char const * link_path , bool overwrite )
1248+ fio_symlink (fio_location location , const char * target , const char * link_path , bool overwrite )
12491249{
12501250 if (fio_is_remote (location ))
12511251 {
@@ -1288,7 +1288,7 @@ fio_symlink_impl(int out, char *buf, bool overwrite)
12881288
12891289/* Rename file */
12901290int
1291- fio_rename (fio_location location , char const * old_path , char const * new_path )
1291+ fio_rename (fio_location location , const char * old_path , const char * new_path )
12921292{
12931293 if (fio_is_remote (location ))
12941294 {
@@ -1315,7 +1315,7 @@ fio_rename(fio_location location, char const* old_path, char const* new_path)
13151315
13161316/* Sync file to disk */
13171317int
1318- fio_sync (fio_location location , char const * path )
1318+ fio_sync (fio_location location , const char * path )
13191319{
13201320 if (fio_is_remote (location ))
13211321 {
@@ -1393,7 +1393,7 @@ fio_get_crc32(fio_location location, const char *file_path, bool decompress)
13931393 * if missing_ok, then ignore ENOENT error
13941394 */
13951395int
1396- fio_remove (fio_location location , char const * path , bool missing_ok )
1396+ fio_remove (fio_location location , const char * path , bool missing_ok )
13971397{
13981398 int result = 0 ;
13991399
@@ -1431,7 +1431,7 @@ fio_remove(fio_location location, char const* path, bool missing_ok)
14311431
14321432
14331433static void
1434- fio_remove_impl (char const * path , bool missing_ok , int out )
1434+ fio_remove_impl (const char * path , bool missing_ok , int out )
14351435{
14361436 fio_header hdr = {
14371437 .cop = FIO_REMOVE ,
@@ -1453,7 +1453,7 @@ fio_remove_impl(char const* path, bool missing_ok, int out)
14531453 * TODO: add strict flag
14541454 */
14551455int
1456- fio_mkdir (fio_location location , char const * path , int mode )
1456+ fio_mkdir (fio_location location , const char * path , int mode )
14571457{
14581458 if (fio_is_remote (location ))
14591459 {
@@ -1480,7 +1480,7 @@ fio_mkdir(fio_location location, char const* path, int mode)
14801480
14811481/* Change file mode */
14821482int
1483- fio_chmod (fio_location location , char const * path , int mode )
1483+ fio_chmod (fio_location location , const char * path , int mode )
14841484{
14851485 if (fio_is_remote (location ))
14861486 {
@@ -1552,7 +1552,7 @@ fio_check_error_fd_gz(gzFile f, char **errmsg)
15521552
15531553/* On error returns NULL and errno should be checked */
15541554gzFile
1555- fio_gzopen (fio_location location , char const * path , char const * mode , int level )
1555+ fio_gzopen (fio_location location , const char * path , const char * mode , int level )
15561556{
15571557 int rc ;
15581558 if (fio_is_remote (location ))
@@ -1819,7 +1819,7 @@ fio_gzseek(gzFile f, z_off_t offset, int whence)
18191819 * Note: it should not be used for large files.
18201820 */
18211821static void
1822- fio_load_file (int out , char const * path )
1822+ fio_load_file (int out , const char * path )
18231823{
18241824 int fd = open (path , O_RDONLY );
18251825 fio_header hdr ;
@@ -2728,7 +2728,7 @@ fio_send_file(const char *from_fullpath, const char *to_fullpath, FILE* out,
27282728 *
27292729 */
27302730static void
2731- fio_send_file_impl (int out , char const * path )
2731+ fio_send_file_impl (int out , const char * path )
27322732{
27332733 FILE * fp ;
27342734 fio_header hdr ;
0 commit comments