fix casting warning and quiet useless runtime noise on success

This commit is contained in:
jband%netscape.com 1999-05-04 03:40:31 +00:00
Родитель e8aff87d5a
Коммит 919fe50aec
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -402,7 +402,7 @@ main(int argc, char **argv)
} }
} }
header = XPT_NewHeader(trueNumberOfInterfaces); header = XPT_NewHeader((PRUint16)trueNumberOfInterfaces);
header->annotations = first_ann; header->annotations = first_ann;
for (i=0; i<trueNumberOfInterfaces; i++) { for (i=0; i<trueNumberOfInterfaces; i++) {
if (!copy_IDE(&IDE_array[i], &header->interface_directory[i])) { if (!copy_IDE(&IDE_array[i], &header->interface_directory[i])) {
@ -444,7 +444,7 @@ main(int argc, char **argv)
if (ferror(out) != 0 || fclose(out) != 0) { if (ferror(out) != 0 || fclose(out) != 0) {
fprintf(stderr, "Error writing file: %s\n", argv[1]); fprintf(stderr, "Error writing file: %s\n", argv[1]);
} else { } else {
fprintf(stderr, "File written: %s\n", argv[1]); /* fprintf(stderr, "File written: %s\n", argv[1]); */
} }
if (state) if (state)

Просмотреть файл

@ -402,7 +402,7 @@ main(int argc, char **argv)
} }
} }
header = XPT_NewHeader(trueNumberOfInterfaces); header = XPT_NewHeader((PRUint16)trueNumberOfInterfaces);
header->annotations = first_ann; header->annotations = first_ann;
for (i=0; i<trueNumberOfInterfaces; i++) { for (i=0; i<trueNumberOfInterfaces; i++) {
if (!copy_IDE(&IDE_array[i], &header->interface_directory[i])) { if (!copy_IDE(&IDE_array[i], &header->interface_directory[i])) {
@ -444,7 +444,7 @@ main(int argc, char **argv)
if (ferror(out) != 0 || fclose(out) != 0) { if (ferror(out) != 0 || fclose(out) != 0) {
fprintf(stderr, "Error writing file: %s\n", argv[1]); fprintf(stderr, "Error writing file: %s\n", argv[1]);
} else { } else {
fprintf(stderr, "File written: %s\n", argv[1]); /* fprintf(stderr, "File written: %s\n", argv[1]); */
} }
if (state) if (state)