@@ -104,7 +104,7 @@ fio_redirect(int in, int out, int err)
104104}
105105
106106void
107- fio_error (int rc , int size , char const * file , int line )
107+ fio_error (int rc , int size , const char * file , int line )
108108{
109109 if (remote_agent )
110110 {
@@ -221,7 +221,7 @@ fio_get_agent_version(int* protocol, char* payload_buf, size_t payload_buf_size)
221221
222222/* Open input stream. Remote file is fetched to the in-memory buffer and then accessed through Linux fmemopen */
223223FILE *
224- fio_open_stream (fio_location location , char const * path )
224+ fio_open_stream (fio_location location , const char * path )
225225{
226226 FILE * f ;
227227 if (fio_is_remote (location ))
@@ -268,7 +268,7 @@ fio_close_stream(FILE* f)
268268
269269/* Open directory */
270270DIR *
271- fio_opendir (fio_location location , char const * path )
271+ fio_opendir (fio_location location , const char * path )
272272{
273273 DIR * dir ;
274274 if (fio_is_remote (location ))
@@ -360,7 +360,7 @@ fio_closedir(DIR *dir)
360360
361361/* Open file */
362362int
363- fio_open (fio_location location , char const * path , int mode )
363+ fio_open (fio_location location , const char * path , int mode )
364364{
365365 int fd ;
366366 if (fio_is_remote (location ))
@@ -430,7 +430,7 @@ fio_disconnect(void)
430430
431431/* Open stdio file */
432432FILE *
433- fio_fopen (fio_location location , char const * path , char const * mode )
433+ fio_fopen (fio_location location , const char * path , const char * mode )
434434{
435435 FILE * f = NULL ;
436436
@@ -476,7 +476,7 @@ fio_fopen(fio_location location, char const* path, char const* mode)
476476
477477/* Format output to file stream */
478478int
479- fio_fprintf (FILE * f , char const * format , ...)
479+ fio_fprintf (FILE * f , const char * format , ...)
480480{
481481 int rc ;
482482 va_list args ;
@@ -1042,7 +1042,7 @@ fio_read(int fd, void* buf, size_t size)
10421042
10431043/* Get information about file */
10441044int
1045- fio_stat (fio_location location , char const * path , struct stat * st , bool follow_symlink )
1045+ fio_stat (fio_location location , const char * path , struct stat * st , bool follow_symlink )
10461046{
10471047 if (fio_is_remote (location ))
10481048 {
@@ -1078,7 +1078,7 @@ fio_stat(fio_location location, char const* path, struct stat* st, bool follow_s
10781078 * Compare, that filename1 and filename2 is the same file
10791079 */
10801080bool
1081- fio_is_same_file (fio_location location , char const * filename1 , char const * filename2 , bool follow_symlink )
1081+ fio_is_same_file (fio_location location , const char * filename1 , const char * filename2 , bool follow_symlink )
10821082{
10831083 struct stat stat1 , stat2 ;
10841084
@@ -1133,7 +1133,7 @@ fio_readlink(fio_location location, const char *path, char *value, size_t valsiz
11331133
11341134/* Check presence of the file */
11351135int
1136- fio_access (fio_location location , char const * path , int mode )
1136+ fio_access (fio_location location , const char * path , int mode )
11371137{
11381138 if (fio_is_remote (location ))
11391139 {
@@ -1165,7 +1165,7 @@ fio_access(fio_location location, char const* path, int mode)
11651165
11661166/* Create symbolic link */
11671167int
1168- fio_symlink (fio_location location , char const * target , char const * link_path , bool overwrite )
1168+ fio_symlink (fio_location location , const char * target , const char * link_path , bool overwrite )
11691169{
11701170 if (fio_is_remote (location ))
11711171 {
@@ -1208,7 +1208,7 @@ fio_symlink_impl(int out, char *buf, bool overwrite)
12081208
12091209/* Rename file */
12101210int
1211- fio_rename (fio_location location , char const * old_path , char const * new_path )
1211+ fio_rename (fio_location location , const char * old_path , const char * new_path )
12121212{
12131213 if (fio_is_remote (location ))
12141214 {
@@ -1235,7 +1235,7 @@ fio_rename(fio_location location, char const* old_path, char const* new_path)
12351235
12361236/* Sync file to disk */
12371237int
1238- fio_sync (fio_location location , char const * path )
1238+ fio_sync (fio_location location , const char * path )
12391239{
12401240 if (fio_is_remote (location ))
12411241 {
@@ -1343,7 +1343,7 @@ fio_get_crc32_truncated(fio_location location, const char *file_path,
13431343 * if missing_ok, then ignore ENOENT error
13441344 */
13451345int
1346- fio_remove (fio_location location , char const * path , bool missing_ok )
1346+ fio_remove (fio_location location , const char * path , bool missing_ok )
13471347{
13481348 int result = 0 ;
13491349
@@ -1381,7 +1381,7 @@ fio_remove(fio_location location, char const* path, bool missing_ok)
13811381
13821382
13831383static void
1384- fio_remove_impl (char const * path , bool missing_ok , int out )
1384+ fio_remove_impl (const char * path , bool missing_ok , int out )
13851385{
13861386 fio_header hdr = {
13871387 .cop = FIO_REMOVE ,
@@ -1403,7 +1403,7 @@ fio_remove_impl(char const* path, bool missing_ok, int out)
14031403 * TODO: add strict flag
14041404 */
14051405int
1406- fio_mkdir (fio_location location , char const * path , int mode )
1406+ fio_mkdir (fio_location location , const char * path , int mode )
14071407{
14081408 if (fio_is_remote (location ))
14091409 {
@@ -1430,7 +1430,7 @@ fio_mkdir(fio_location location, char const* path, int mode)
14301430
14311431/* Change file mode */
14321432int
1433- fio_chmod (fio_location location , char const * path , int mode )
1433+ fio_chmod (fio_location location , const char * path , int mode )
14341434{
14351435 if (fio_is_remote (location ))
14361436 {
@@ -1502,7 +1502,7 @@ fio_check_error_fd_gz(gzFile f, char **errmsg)
15021502
15031503/* On error returns NULL and errno should be checked */
15041504gzFile
1505- fio_gzopen (fio_location location , char const * path , char const * mode , int level )
1505+ fio_gzopen (fio_location location , const char * path , const char * mode , int level )
15061506{
15071507 int rc ;
15081508 if (fio_is_remote (location ))
@@ -1769,7 +1769,7 @@ fio_gzseek(gzFile f, z_off_t offset, int whence)
17691769 * Note: it should not be used for large files.
17701770 */
17711771static void
1772- fio_load_file (int out , char const * path )
1772+ fio_load_file (int out , const char * path )
17731773{
17741774 int fd = open (path , O_RDONLY );
17751775 fio_header hdr ;
@@ -2945,7 +2945,7 @@ fio_send_file_local(const char *from_fullpath, FILE* out, bool cut_zero_tail,
29452945 *
29462946 */
29472947static void
2948- fio_send_file_impl (int out , char const * path )
2948+ fio_send_file_impl (int out , const char * path )
29492949{
29502950 FILE * fp ;
29512951 fio_header hdr ;
0 commit comments