summaryrefslogtreecommitdiff
path: root/pgfuse.c
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-05-01 10:43:03 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-05-01 10:43:03 +0200
commit0db336fe4665d3ca2e7b0f6c4fa44a32bf5aafd3 (patch)
tree8e8729d0d2d386743c7e8cf1b9e9a3d854689bf2 /pgfuse.c
parentd04a9d1fe99eb0e1661cf7f2169b3f7dd0792efc (diff)
downloadpgfuse-0db336fe4665d3ca2e7b0f6c4fa44a32bf5aafd3.tar.gz
pgfuse-0db336fe4665d3ca2e7b0f6c4fa44a32bf5aafd3.tar.bz2
removed a lot of casts around off_t and size_t
Diffstat (limited to 'pgfuse.c')
-rw-r--r--pgfuse.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/pgfuse.c b/pgfuse.c
index 51c821a..0126690 100644
--- a/pgfuse.c
+++ b/pgfuse.c
@@ -741,8 +741,8 @@ static int pgfuse_write( const char *path, const char *buf, size_t size,
PGconn *conn;
if( data->verbose ) {
- syslog( LOG_INFO, "Write to '%s' from offset %d, size %d on '%s', thread #%u",
- path, (unsigned int)offset, (unsigned int)size, data->mountpoint,
+ syslog( LOG_INFO, "Write to '%s' from offset %jd, size %zu on '%s', thread #%u",
+ path, offset, size, data->mountpoint,
THREAD_ID );
}
@@ -800,8 +800,8 @@ static int pgfuse_read( const char *path, char *buf, size_t size,
PGconn *conn;
if( data->verbose ) {
- syslog( LOG_INFO, "Read to '%s' from offset %d, size %d on '%s', thread #%u",
- path, (unsigned int)offset, (unsigned int)size, data->mountpoint,
+ syslog( LOG_INFO, "Read to '%s' from offset %jd, size %zu on '%s', thread #%u",
+ path, offset, size, data->mountpoint,
THREAD_ID );
}
@@ -833,8 +833,8 @@ static int pgfuse_truncate( const char* path, off_t offset )
PGconn *conn;
if( data->verbose ) {
- syslog( LOG_INFO, "Truncate of '%s' to size '%d' on '%s', thread #%u",
- path, (unsigned int)offset, data->mountpoint, THREAD_ID );
+ syslog( LOG_INFO, "Truncate of '%s' to size '%jd' on '%s', thread #%u",
+ path, offset, data->mountpoint, THREAD_ID );
}
ACQUIRE( conn );
@@ -888,8 +888,8 @@ static int pgfuse_ftruncate( const char *path, off_t offset, struct fuse_file_in
PGconn *conn;
if( data->verbose ) {
- syslog( LOG_INFO, "Truncate of '%s' to size '%d' on '%s', thread #%u",
- path, (unsigned int)offset, data->mountpoint,
+ syslog( LOG_INFO, "Truncate of '%s' to size '%jd' on '%s', thread #%u",
+ path, offset, data->mountpoint,
THREAD_ID );
}