Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/midirecord PR/49716: Henning Petersen: Use false and...
details: https://anonhg.NetBSD.org/src/rev/c571416980e8
branches: trunk
changeset: 806655:c571416980e8
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 04 13:34:49 2015 +0000
description:
PR/49716: Henning Petersen: Use false and true on bool, fix sign in printf
formats.
diffstat:
usr.bin/midirecord/midirecord.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 42d3ee6fa686 -r c571416980e8 usr.bin/midirecord/midirecord.c
--- a/usr.bin/midirecord/midirecord.c Wed Mar 04 13:33:19 2015 +0000
+++ b/usr.bin/midirecord/midirecord.c Wed Mar 04 13:34:49 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: midirecord.c,v 1.7 2015/03/01 09:56:54 mrg Exp $ */
+/* $NetBSD: midirecord.c,v 1.8 2015/03/04 13:34:49 christos Exp $ */
/*
* Copyright (c) 2014 Matthew R. Green
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: midirecord.c,v 1.7 2015/03/01 09:56:54 mrg Exp $");
+__RCSID("$NetBSD: midirecord.c,v 1.8 2015/03/04 13:34:49 christos Exp $");
#endif
#include <sys/param.h>
@@ -122,7 +122,7 @@
"channels");
break;
case 'D':
- debug++;
+ debug = true;
break;
case 'd':
parse_ints(optarg, &filt_devnos, &num_filt_devnos,
@@ -237,7 +237,7 @@
data_size = 0;
if (verbose)
- fprintf(stderr, "tempo=%d notes_per_beat=%d\n",
+ fprintf(stderr, "tempo=%d notes_per_beat=%u\n",
tempo, notes_per_beat);
if (!no_time_limit && verbose)
@@ -282,7 +282,7 @@
if (!debug)
return;
- fprintf(stderr, "%s:%zd: ", file, line);
+ fprintf(stderr, "%s:%zu: ", file, line);
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
Home |
Main Index |
Thread Index |
Old Index