Skip to content

Commit 46b4542

Browse files
fweimer-rhanoopcs9
authored andcommitted
glfs-truncate: Add missing int return types
Implicit ints are a historic C feature that was removed from the language in 1999.
1 parent 1b5a326 commit 46b4542

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/glfs-truncate.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ init_state ()
297297
return state;
298298
}
299299

300+
int
300301
gluster_get (glfs_t *fs, const char *filename) {
301302
glfs_fd_t *fd = NULL;
302303
int ret = -1;
@@ -327,7 +328,7 @@ gluster_get (glfs_t *fs, const char *filename) {
327328
return ret;
328329
}
329330

330-
331+
int
331332
truncate_without_context ()
332333
{
333334
glfs_t *fs = NULL;

0 commit comments

Comments
 (0)