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; _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"