fixed openIndex indentation

This commit is contained in:
francois.meyer 2021-11-23 08:47:09 +00:00
parent 9c5bafb400
commit 7a490c7998
1 changed files with 30 additions and 30 deletions

View File

@ -492,7 +492,7 @@ readu5hpm (int rnm, int *pmra, int *pmdec) // CHECKME FIXME UCAC5
// //
/* add the stars in the given 0-based ra/dec zone to oap. /* add the stars in the given 0-based ra/dec zone to oap.
* return 0 if ok, else -1 * return 0 if ok, else -1
* N.B. rz may wrap * N.B. rz may wrap
*/ */
static int static int
add4Bin (ObjFArray *oap, int rz, int dz) add4Bin (ObjFArray *oap, int rz, int dz)
@ -707,7 +707,7 @@ readu4hpm (int rnm, int *pmra, int *pmdec)
/* add the stars in the given 0-based ra/dec zone to oap. /* add the stars in the given 0-based ra/dec zone to oap.
* return 0 if ok, else -1 * return 0 if ok, else -1
* N.B. rz may wrap * N.B. rz may wrap
*/ */
static int static int
add3Bin (ObjFArray *oap, int rz, int dz) add3Bin (ObjFArray *oap, int rz, int dz)
@ -845,7 +845,7 @@ crack3 (U3Star u, Obj *op)
/* add the stars in the given 0-based ra/dec zone to oap. /* add the stars in the given 0-based ra/dec zone to oap.
* return 0 if ok, else -1 * return 0 if ok, else -1
* N.B. rz may wrap * N.B. rz may wrap
*/ */
static int static int
add2Bin (ObjFArray *oap, int rz, int dz) add2Bin (ObjFArray *oap, int rz, int dz)
@ -984,39 +984,39 @@ crack2 (U2Star u, int id, Obj *op)
static FILE * static FILE *
openIndex (char dir[], char msg[], int *ucacvp) openIndex (char dir[], char msg[], int *ucacvp)
{ {
static char u2[] = "u2index.da"; /* zone index file name */ static char u2[] = "u2index.da"; /* zone index file name */
static char u3[] = "u3index.unf"; /* zone index file name */ static char u3[] = "u3index.unf"; /* zone index file name */
static char u4[] = "u4index.unf"; /* zone index file name */ static char u4[] = "u4index.unf"; /* zone index file name */
static char u5[] = "u5index.unf"; /* zone index file name */ static char u5[] = "u5index.unf"; /* zone index file name */
char full[1024]; char full[1024];
FILE *fp; FILE *fp;
sprintf (full, "%s/%s", dir, u2); sprintf (full, "%s/%s", dir, u2);
fp = fopen (full, "r"); fp = fopen (full, "r");
if (fp) { if (fp) {
*ucacvp = 2; *ucacvp = 2;
} else { } else {
sprintf (full, "%s/%s", dir, u3); sprintf (full, "%s/%s", dir, u3);
fp = fopen (full, "r"); fp = fopen (full, "r");
if (fp) { if (fp) {
*ucacvp = 3; *ucacvp = 3;
} else { } else {
sprintf (full, "%s/u4i/%s", dir, u4); sprintf (full, "%s/u4i/%s", dir, u4);
fp = fopen (full, "r"); fp = fopen (full, "r");
if (fp) { if (fp) {
*ucacvp = 4; *ucacvp = 4;
} else { } else {
sprintf (full, "%s/%s", dir, u5); sprintf (full, "%s/%s", dir, u5);
fp = fopen (full, "r"); fp = fopen (full, "r");
if (fp) { if (fp) {
*ucacvp = 5; *ucacvp = 5;
} else { } else {
sprintf (msg, "Can not find %s or %s or %s or %s", u2, u3, u4, u5); sprintf (msg, "Can not find %s or %s or %s or %s", u2, u3, u4, u5);
} }
} }
} }
} }
return (fp); return (fp);
} }
/* given the J and K_s fields in the UCAC catalog, fill in f_spect[] in op. /* given the J and K_s fields in the UCAC catalog, fill in f_spect[] in op.