Skip to content

Commit 662b102

Browse files
author
Joshua Goller
committed
ch-5 compiles
1 parent 5e11297 commit 662b102

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

ch-5/include/5.10.h

-3
This file was deleted.

ch-5/src/5.8-9.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "5.8-9.h"
21
#include <stdio.h>
32
#include <stdlib.h>
43

@@ -19,7 +18,7 @@ else (it is a leap year)
1918
static char *daytab[2];
2019

2120
// set day of year from month & day
22-
int day_of_year(const int year, const int month, int day) {
21+
static int day_of_year(const int year, const int month, int day) {
2322
int i, leap;
2423

2524
// Reject invalid year and month values
@@ -49,7 +48,8 @@ int day_of_year(const int year, const int month, int day) {
4948
}
5049

5150
// set month, day, from day of year
52-
int month_day(const int year, int yearday, int *const pmonth, int *const pday) {
51+
static int month_day(const int year, int yearday, int *const pmonth,
52+
int *const pday) {
5353
int i, leap;
5454

5555
// Reject invalid year or yearday values

0 commit comments

Comments
 (0)