Fixes to allow compilation on F14
This commit is contained in:
parent
1b6731f8fe
commit
91bc81afee
@ -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();
|
||||
|
@ -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, ...) {
|
||||
|
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user