rewrote libhdfs engine
[fio.git] / engines / falloc.c
index 8025085baddae612c6f9f6f174a7ec0aaf8b29cc..2b00d525d648e071bb17a7e97c0b63405f192ec7 100644 (file)
@@ -23,7 +23,7 @@
  * generic_open_file is not appropriate because does not allow to perform
  * TRIM in to file
  */
-int open_file(struct thread_data *td, struct fio_file *f)
+static int open_file(struct thread_data *td, struct fio_file *f)
 {
        int from_hash = 0;
 
@@ -43,9 +43,10 @@ open_again:
 
        if (f->fd == -1) {
                char buf[FIO_VERROR_SIZE];
-               int __e = errno;
+               int e = errno;
+
                snprintf(buf, sizeof(buf), "open(%s)", f->file_name);
-               td_verror(td, __e, buf);
+               td_verror(td, e, buf);
        }
 
        if (!from_hash && f->fd != -1) {