summaryrefslogtreecommitdiffstats
path: root/src/geometry.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-11-02 17:14:52 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-11-02 17:14:52 +0100
commit249bad4bb750551855f3f1931110d3f493c6f779 (patch)
tree2062db2dc1854e224f64a0a1f7870501ceec40a0 /src/geometry.c
parent6d5421fd222ff503c4645f5e96c1bd895f711468 (diff)
- Use wprintw ncurses function instead of a custom one
- src/file_mov.c: Fix a compilation error if DEBUG_MOV is defined
Diffstat (limited to 'src/geometry.c')
-rw-r--r--src/geometry.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/geometry.c b/src/geometry.c
index 7f8dcfa..c93db08 100644
--- a/src/geometry.c
+++ b/src/geometry.c
@@ -162,19 +162,19 @@ static void change_geometry_ncurses(disk_t *disk_car)
};
aff_copy(stdscr);
wmove(stdscr,5,0);
- wdoprintf(stdscr,"%s, sector size=%u\n",disk_car->description(disk_car),disk_car->sector_size);
+ wprintw(stdscr,"%s, sector size=%u\n",disk_car->description(disk_car),disk_car->sector_size);
wmove(stdscr,7,0);
- wdoprintf(stdscr,"Because these numbers change the way that TestDisk looks for partitions");
+ wprintw(stdscr,"Because these numbers change the way that TestDisk looks for partitions");
wmove(stdscr,8,0);
- wdoprintf(stdscr,"and calculates their sizes, it's important to have the correct disk geometry.");
+ wprintw(stdscr,"and calculates their sizes, it's important to have the correct disk geometry.");
wmove(stdscr,9,0);
- wdoprintf(stdscr,"PC partitioning programs often make partitions end on cylinder boundaries.");
+ wprintw(stdscr,"PC partitioning programs often make partitions end on cylinder boundaries.");
wmove(stdscr,11,0);
- wdoprintf(stdscr,"A partition's CHS values are based on disk translations which make them");
+ wprintw(stdscr,"A partition's CHS values are based on disk translations which make them");
wmove(stdscr,12,0);
- wdoprintf(stdscr,"different than its physical geometry. The most common CHS head values");
+ wprintw(stdscr,"different than its physical geometry. The most common CHS head values");
wmove(stdscr,13,0);
- wdoprintf(stdscr,"are: 255, 240 and sometimes 16.");
+ wprintw(stdscr,"are: 255, 240 and sometimes 16.");
wmove(stdscr,INTER_GEOM_Y, INTER_GEOM_X);
wclrtoeol(stdscr);
wrefresh(stdscr);
@@ -192,7 +192,7 @@ static void change_geometry_ncurses(disk_t *disk_car)
cyl_modified=1;
geo_modified=1;
} else
- wdoprintf(stdscr,"Illegal cylinders value");
+ wprintw(stdscr,"Illegal cylinders value");
}
}
default_option=1;
@@ -212,7 +212,7 @@ static void change_geometry_ncurses(disk_t *disk_car)
disk_car->CHS.cylinder=(((disk_car->disk_size/disk_car->sector_size+disk_car->CHS.head)/(disk_car->CHS.head+1))+disk_car->CHS.sector-1)/disk_car->CHS.sector-1;
}
} else
- wdoprintf(stdscr,"Illegal heads value");
+ wprintw(stdscr,"Illegal heads value");
}
}
default_option=2;
@@ -235,7 +235,7 @@ static void change_geometry_ncurses(disk_t *disk_car)
disk_car->CHS.cylinder=(disk_car->disk_size/disk_car->sector_size/(disk_car->CHS.head+1))/disk_car->CHS.sector-1;
}
} else
- wdoprintf(stdscr,"Illegal sectors value");
+ wprintw(stdscr,"Illegal sectors value");
}
}
default_option=3;
@@ -256,7 +256,7 @@ static void change_geometry_ncurses(disk_t *disk_car)
disk_car->CHS.cylinder=(disk_car->disk_size/disk_car->sector_size/(disk_car->CHS.head+1))/disk_car->CHS.sector-1;
}
} else
- wdoprintf(stdscr,"Illegal sector size");
+ wprintw(stdscr,"Illegal sector size");
}
}
default_option=4;