Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Use Size instead of uint32 to store result of sizeof()
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 5 May 2014 13:17:16 +0000 (16:17 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 5 May 2014 13:17:16 +0000 (16:17 +0300)
Silences coverity and is more consistent with other functions in the
same file.

Andres Freund

src/backend/replication/logical/snapbuild.c

index c462e9059d64018db90a37c32f36da521d2feb48..36034dbec9dd33f36013a905481ae80aae9a5b07 100644 (file)
@@ -1431,7 +1431,7 @@ SnapBuildSerialize(SnapBuild *builder, XLogRecPtr lsn)
    char        path[MAXPGPATH];
    int         ret;
    struct stat stat_buf;
-   uint32      sz;
+   Size        sz;
 
    Assert(lsn != InvalidXLogRecPtr);
    Assert(builder->last_serialized_snapshot == InvalidXLogRecPtr ||