Fixes to allow compilation on F14

This commit is contained in:
Joanna Rutkowska 2011-04-01 15:08:07 +02:00
parent 1b6731f8fe
commit 91bc81afee
3 changed files with 4 additions and 3 deletions

View File

@ -75,7 +75,7 @@ int doMediaCheck(char *file, char *descr) {
data.scale = scale;
data.label = label;
rc = mediaCheckFile(file, progressCallback, &data);
rc = mediaCheckFile(file, progressCallback, (void*)&data);
newtFormDestroy(f);
newtPopWindow();

View File

@ -66,7 +66,7 @@ void scsiWindow(const char * driver) {
_("Loading %s driver"), driver);
}
void progressCallback(void *pbdata, long long pos, long long total) {
int progressCallback(void *pbdata, long long pos, long long total) {
struct progressCBdata *data = pbdata;
char tickmark[2] = "-";
char *ticks = "-\\|/";
@ -77,6 +77,7 @@ void progressCallback(void *pbdata, long long pos, long long total) {
newtLabelSetText(data->label, tickmark);
newtRefresh();
return 0;
}
struct progressCBdata *winProgressBar(int width, int height, char *title, char *text, ...) {

View File

@ -37,7 +37,7 @@ struct progressCBdata {
newtComponent label;
};
void progressCallback(void *pbdata, long long pos, long long total);
int progressCallback(void *pbdata, long long pos, long long total);
struct progressCBdata *winProgressBar(int width, int height, char *title, char *text, ...);
#endif /* _WINDOWS_H_ */