Indentation fix in set_location_and_time()
This commit is contained in:
parent
cf7f5135f1
commit
eb23cb8c49
36
src/gradix.c
36
src/gradix.c
@ -206,30 +206,30 @@ get_planet_position(int32 planet_no, double date)
|
|||||||
int
|
int
|
||||||
set_location_and_time(double lon, double lat, double alt, int year, int month, int day, int hour, int min, double sec, double d_timezone, double *jd)
|
set_location_and_time(double lon, double lat, double alt, int year, int month, int day, int hour, int min, double sec, double d_timezone, double *jd)
|
||||||
{
|
{
|
||||||
int utc_year,
|
int utc_year,
|
||||||
utc_month,
|
utc_month,
|
||||||
utc_day,
|
utc_day,
|
||||||
utc_hour,
|
utc_hour,
|
||||||
utc_min;
|
utc_min;
|
||||||
double utc_sec,
|
double utc_sec,
|
||||||
retval,
|
retval,
|
||||||
dret[2];
|
dret[2];
|
||||||
char serr[AS_MAXCH];
|
char serr[AS_MAXCH];
|
||||||
|
|
||||||
swe_set_topo(lon, lat, alt);
|
swe_set_topo(lon, lat, alt);
|
||||||
swe_utc_time_zone(year, month, day, hour, min, sec, d_timezone, &utc_year, &utc_month, &utc_day, &utc_hour, &utc_min, &utc_sec);
|
swe_utc_time_zone(year, month, day, hour, min, sec, d_timezone, &utc_year, &utc_month, &utc_day, &utc_hour, &utc_min, &utc_sec);
|
||||||
if ((retval = swe_utc_to_jd(utc_year, utc_month, utc_day, utc_hour, utc_min, utc_sec, SE_GREG_CAL, dret, serr)) == ERR) {
|
|
||||||
printf("error: %s\n", serr);
|
|
||||||
|
|
||||||
return 0;
|
if ((retval = swe_utc_to_jd(utc_year, utc_month, utc_day, utc_hour, utc_min, utc_sec, SE_GREG_CAL, dret, serr)) == ERR) {
|
||||||
}
|
printf("error: %s\n", serr);
|
||||||
|
|
||||||
*jd = dret[0];
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
*jd = dret[0];
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
moonPhase *
|
moonPhase *
|
||||||
get_moon_phase(gint year, gint month, gint day, gint hour, gint min, gint sec)
|
get_moon_phase(gint year, gint month, gint day, gint hour, gint min, gint sec)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user