use off_t to return the offset. Finally allows to handle swap files larger

2003-01-04  Sven Neumann  <sven@gimp.org>

	* app/base/tile-swap.c (tile_swap_find_offset): use off_t to
	return the offset. Finally allows to handle swap files larger than
	2 GB (fixes bug #74478).
This commit is contained in:
Sven Neumann 2003-01-04 15:06:01 +00:00 committed by Sven Neumann
parent 91316ea199
commit 23054985da
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-01-04 Sven Neumann <sven@gimp.org>
* app/base/tile-swap.c (tile_swap_find_offset): use off_t to
return the offset. Finally allows to handle swap files larger than
2 GB (fixes bug #74478).
2003-01-03 Sven Neumann <sven@gimp.org>
* configure.in: bumped the version number to 1.3.12.

View File

@ -111,7 +111,7 @@ static void tile_swap_default_out (DefSwapFile *def_swap_file,
static void tile_swap_default_delete (DefSwapFile *def_swap_file,
gint fd,
Tile *tile);
static glong tile_swap_find_offset (DefSwapFile *def_swap_file,
static off_t tile_swap_find_offset (DefSwapFile *def_swap_file,
gint fd,
off_t bytes);
static void tile_swap_resize (DefSwapFile *def_swap_file,
@ -755,7 +755,7 @@ tile_swap_resize (DefSwapFile *def_swap_file,
def_swap_file->swap_file_end = new_size;
}
static long
static off_t
tile_swap_find_offset (DefSwapFile *def_swap_file,
gint fd,
off_t bytes)