summaryrefslogtreecommitdiffstats
path: root/src/sessionp.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-03-25 14:34:35 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-03-25 14:34:35 +0100
commitb2ac7a67424be0bae302a8bea02b5af1a5d5eac7 (patch)
tree781e718840c8456ce2d407ee133ee71b53248d48 /src/sessionp.c
parent4acc8c51bb94006ba263d7b40ba268bc296279e1 (diff)
PhotoRec: use "%llu" instead of "%lu" to display sectors offset
Diffstat (limited to 'src/sessionp.c')
-rw-r--r--src/sessionp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sessionp.c b/src/sessionp.c
index f45fc8f..9f643d1 100644
--- a/src/sessionp.c
+++ b/src/sessionp.c
@@ -122,8 +122,8 @@ int session_load(char **cmd_device, char **current_cmd, alloc_data_t *list_free_
*current_cmd=strdup(info);
while(1)
{
- long unsigned int start=0;
- long unsigned int end=0;
+ uint64_t start=0;
+ uint64_t end=0;
while(*pos>='0' && *pos<='9')
{
start=start*10 + (*pos - '0');
@@ -212,8 +212,9 @@ int session_save(alloc_data_t *list_free_space, disk_t *disk_car, const partitio
{
alloc_data_t *current_free_space;
current_free_space=td_list_entry(free_walker, alloc_data_t, list);
- fprintf(f_session,"%lu-%lu\n",(long unsigned)(current_free_space->start/disk_car->sector_size),
- (long unsigned)(current_free_space->end/disk_car->sector_size));
+ fprintf(f_session,"%llu-%llu\n",
+ (long long unsigned)(current_free_space->start/disk_car->sector_size),
+ (long long unsigned)(current_free_space->end/disk_car->sector_size));
}
}
{ /* Reserve some space */