Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/audio/record PR/45384: Henning Petersen: Swapped arg...
details: https://anonhg.NetBSD.org/src/rev/8dbd2aab7df3
branches: trunk
changeset: 769744:8dbd2aab7df3
user: christos <christos%NetBSD.org@localhost>
date: Wed Sep 21 14:32:14 2011 +0000
description:
PR/45384: Henning Petersen: Swapped arguments in lseek
diffstat:
usr.bin/audio/record/record.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e44d3085e4d6 -r 8dbd2aab7df3 usr.bin/audio/record/record.c
--- a/usr.bin/audio/record/record.c Wed Sep 21 14:30:47 2011 +0000
+++ b/usr.bin/audio/record/record.c Wed Sep 21 14:32:14 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: record.c,v 1.51 2011/08/28 01:17:48 joerg Exp $ */
+/* $NetBSD: record.c,v 1.52 2011/09/21 14:32:14 christos Exp $ */
/*
* Copyright (c) 1999, 2002, 2003, 2005, 2010 Matthew R. Green
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: record.c,v 1.51 2011/08/28 01:17:48 joerg Exp $");
+__RCSID("$NetBSD: record.c,v 1.52 2011/09/21 14:32:14 christos Exp $");
#endif
@@ -755,7 +755,7 @@
if (outfd == STDOUT_FILENO)
return;
- if (lseek(outfd, SEEK_SET, 0) < 0)
+ if (lseek(outfd, (off_t)0, SEEK_SET) == (off_t)-1)
err(1, "could not seek to start of file for header rewrite");
write_header();
}
Home |
Main Index |
Thread Index |
Old Index