Changeset 35698
- Timestamp:
- Jun 21, 2013, 3:20:32 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130509/Ohana/src/tools/src
- Files:
-
- 2 edited
-
glockfile.c (modified) (1 diff)
-
radec.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/Ohana/src/tools/src/glockfile.c
r34260 r35698 33 33 type = LCK_XCLD; 34 34 } 35 if (!strcasecmp (argv[2], "check")) { 36 fchecklockfile (filename, LCK_HARD, &state); 37 exit (0); 38 } 35 39 36 40 f = fsetlockfile (filename, timeout, type, &state); -
branches/eam_branches/ipp-20130509/Ohana/src/tools/src/radec.c
r34581 r35698 84 84 85 85 flag_h = dparse (h, 1, string); 86 if (!flag_h) { 87 fprintf (stderr, "warning -- invalid number / non-ascii characters in string : %s\n", string); 88 return FALSE; 89 } 86 90 flag_d = dparse (d, Nfields + 1, string); 91 if (!flag_d) { 92 fprintf (stderr, "warning -- invalid number / non-ascii characters in string : %s\n", string); 93 return FALSE; 94 } 87 95 *h *= flag_h; 88 96 *d *= flag_d; 89 97 90 98 if (Nfields > 1) { 91 dparse (&tmp, 2, string); 99 if (!dparse (&tmp, 2, string)) { 100 fprintf (stderr, "warning -- invalid number / non-ascii characters in string : %s\n", string); 101 return FALSE; 102 } 103 92 104 *h += tmp/60.0; 93 dparse (&tmp, Nfields + 2, string); 105 if (!dparse (&tmp, Nfields + 2, string)) { 106 fprintf (stderr, "warning -- invalid number / non-ascii characters in string : %s\n", string); 107 return FALSE; 108 } 109 94 110 *d += tmp/60.0; 95 111 } 96 112 97 113 if (Nfields > 2) { 98 dparse (&tmp, 3, string); 114 if (!dparse (&tmp, 3, string)) { 115 fprintf (stderr, "warning -- invalid number / non-ascii characters in string : %s\n", string); 116 return FALSE; 117 } 118 99 119 *h += tmp/3600.0; 100 dparse (&tmp, Nfields + 3, string); 120 if (!dparse (&tmp, Nfields + 3, string)) { 121 fprintf (stderr, "warning -- invalid number / non-ascii characters in string : %s\n", string); 122 return FALSE; 123 } 124 101 125 *d += tmp/3600.0; 102 126 }
Note:
See TracChangeset
for help on using the changeset viewer.
