Indentation fix in main()

This commit is contained in:
Gergely Polonkai 2013-07-26 17:02:55 +02:00
parent 04e684ecc1
commit 4ed37cb5be

View File

@ -332,17 +332,18 @@ main(int argc, char *argv[])
swe_set_ephe_path(EPHEDIR); swe_set_ephe_path(EPHEDIR);
if (set_location_and_time(lon, lat, alt, year, month, day, hour, min, sec, timezone, &te) == 0) {
return 1;
}
printf("date: %02d.%02d.%d at %02d:%02d:%02d, at %f, %f\n", year, month, day, hour, min, sec, lon, lat); if (set_location_and_time(lon, lat, alt, year, month, day, hour, min, sec, timezone, &te) == 0) {
return 1;
}
swe_houses(te, lat, lon, 'P', cusps, ascmc); printf("date: %02d.%02d.%d at %02d:%02d:%02d, at %f, %f\n", year, month, day, hour, min, sec, lon, lat);
for (p = 1; p < 13; p++) { swe_houses(te, lat, lon, 'P', cusps, ascmc);
printf("House %2d..: %2.0f (%f)\n", p, ceilf(cusps[p] / 30.0), cusps[p]);
} for (p = 1; p < 13; p++) {
printf("House %2d..: %2.0f (%f)\n", p, ceilf(cusps[p] / 30.0), cusps[p]);
}
get_moon_phase(year, month, day, hour, min, sec); get_moon_phase(year, month, day, hour, min, sec);
printf("Asc.......: %.0f\n", ceilf(ascmc[0] / 30.0)); printf("Asc.......: %.0f\n", ceilf(ascmc[0] / 30.0));