Skip to content

Commit 26063cf

Browse files
committed
use off_t for the variable holding the offset
1 parent 9737c74 commit 26063cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

file-locking/fcntl-locking.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ int
174174
main(int argc, char **argv)
175175
{
176176
struct sigaction act;
177-
unsigned int i, j;
177+
unsigned int i;
178+
off_t j;
178179
int fd;
179180
struct flock fl;
180181
char *progname = argv[0];

0 commit comments

Comments
 (0)