svn commit: r327615 - head/usr.bin/morse
Eitan Adler
eadler at FreeBSD.org
Sat Jan 6 07:48:18 UTC 2018
Author: eadler
Date: Sat Jan 6 07:48:17 2018
New Revision: 327615
URL: https://svnweb.freebsd.org/changeset/base/327615
Log:
morse(6): minor nits
- Use copyright comment header
- Make it easier to compile on !FreeBSD
- Diff reduction against DragonFlyBSD
Modified:
head/usr.bin/morse/morse.c
Modified: head/usr.bin/morse/morse.c
==============================================================================
--- head/usr.bin/morse/morse.c Sat Jan 6 07:02:24 2018 (r327614)
+++ head/usr.bin/morse/morse.c Sat Jan 6 07:48:17 2018 (r327615)
@@ -1,4 +1,4 @@
-/*
+/*-
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
*
@@ -57,8 +57,10 @@ static const char rcsid[] =
#include <termios.h>
#include <unistd.h>
+#ifdef __FreeBSD__
/* Always use the speaker, let the open fail if -p is selected */
#define SPEAKER "/dev/speaker"
+#endif
#define WHITESPACE " \t\n"
#define DELIMITERS " \t"
@@ -307,7 +309,7 @@ static tone_t sound;
static const struct morsetab *hightab;
int
-main(int argc, char **argv)
+main(int argc, char *argv[])
{
int ch, lflags;
char *p, *codeset;
More information about the svn-src-all
mailing list