diff options
author | charnier <charnier@FreeBSD.org> | 1998-01-07 07:46:33 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1998-01-07 07:46:33 +0000 |
commit | 3210047753e19fa10c2a78d438ba2b6a57d281b6 (patch) | |
tree | dccebfb30cecb1ff497106591eb305cbfafc0651 /usr.bin/ncal/ncal.c | |
parent | 7dfb53a951d6005648cf8340e6ada29bf01d6a37 (diff) | |
download | FreeBSD-src-3210047753e19fa10c2a78d438ba2b6a57d281b6.zip FreeBSD-src-3210047753e19fa10c2a78d438ba2b6a57d281b6.tar.gz |
Sync usage and synopsis. Add rcsid.
Diffstat (limited to 'usr.bin/ncal/ncal.c')
-rw-r--r-- | usr.bin/ncal/ncal.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/usr.bin/ncal/ncal.c b/usr.bin/ncal/ncal.c index 6471007..24363d6 100644 --- a/usr.bin/ncal/ncal.c +++ b/usr.bin/ncal/ncal.c @@ -22,9 +22,13 @@ * 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. - * - * $Id: ncal.c,v 1.3 1998/01/03 15:10:11 helbig Exp $ */ + +#ifndef lint +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ + #include <calendar.h> #include <err.h> #include <locale.h> @@ -170,7 +174,7 @@ date *sdate(int ndays, struct date * d); date *sdateb(int ndays, struct date * d); int sndays(struct date * d); int sndaysb(struct date * d); -void usage(void); +static void usage(void); int weekdayb(int nd); int @@ -331,14 +335,14 @@ main(int argc, char *argv[]) return (0); } -void +static void usage(void) { - fprintf(stderr, - "usage: cal [-jy] [month[year]]\n" - "usage: ncal [-Jjpwy] [-s country_code] [[month] year]\n" - "usage: ncal [-Jeo] [year]\n"); + fprintf(stderr, "%s\n%s\n%s\n", + "usage: cal [-jy] [month[year]]", + " ncal [-Jjpwy] [-s country_code] [[month] year]", + " ncal [-Jeo] [year]"); exit(EX_USAGE); } |