aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/calendar/sunpos.c
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>2013-06-12 07:52:49 +0000
committerGreg Lehey <grog@FreeBSD.org>2013-06-12 07:52:49 +0000
commit90c72ba909ecee2c6ba2f58022eb9beef691fb3d (patch)
tree565931d841b33aa8b6255ef0b6f37b36afe62d42 /usr.bin/calendar/sunpos.c
parent962532154793aa019b5669efaacd0b9e25bcfb52 (diff)
downloadsrc-90c72ba909ecee2c6ba2f58022eb9beef691fb3d.tar.gz
src-90c72ba909ecee2c6ba2f58022eb9beef691fb3d.zip
Handle some expression regressions.
Explicitly use GNU cpp for preprocessing. Remove explicit debugging code. Change some variable names to be less confusing. Improve some comments. Improve indentation. PR: 162211 168785 MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=251647
Diffstat (limited to 'usr.bin/calendar/sunpos.c')
-rw-r--r--usr.bin/calendar/sunpos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/calendar/sunpos.c b/usr.bin/calendar/sunpos.c
index 72b8f5c0c055..f905c3f4a720 100644
--- a/usr.bin/calendar/sunpos.c
+++ b/usr.bin/calendar/sunpos.c
@@ -10,7 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- *
+ *
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -22,7 +22,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
*/
#include <sys/cdefs.h>
@@ -373,7 +373,7 @@ calculatesunlongitude30(int year, int degreeGMToffset, int *ichinesemonths)
int firstmonth330 = -1;
cumdays = cumdaytab[isleap(year)];
- monthdays = mondaytab[isleap(year)];
+ monthdays = monthdaytab[isleap(year)];
pichinesemonths = ichinesemonths;
h = 0;