diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-03-08 13:36:11 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-03-08 13:36:11 +0400 |
commit | 75543537a16a0911af61045a96926cdb81f51383 (patch) | |
tree | 34fa443cb5d7c48e058d17cb2605e10d3947b521 /winsup/cygwin/fhandler_tape.cc | |
parent | 106833e9b360c8f56e465e2e80141a13dc193635 (diff) |
* Throughout, replace usage of w32api's min with MIN from sys/param.h.
Diffstat (limited to 'winsup/cygwin/fhandler_tape.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tape.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_tape.cc b/winsup/cygwin/fhandler_tape.cc index 17d2685f1..c394d862d 100644 --- a/winsup/cygwin/fhandler_tape.cc +++ b/winsup/cygwin/fhandler_tape.cc @@ -2,7 +2,7 @@ classes. Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, - 2008, 2010, 2011 Red Hat, Inc. + 2008, 2010, 2011, 2012 Red Hat, Inc. This file is part of Cygwin. @@ -1278,7 +1278,7 @@ fhandler_dev_tape::raw_read (void *ptr, size_t &ulen) { if (devbufend > devbufstart) { - bytes_to_read = min (len, devbufend - devbufstart); + bytes_to_read = MIN (len, devbufend - devbufstart); debug_printf ("read %d bytes from buffer (rest %d)", bytes_to_read, devbufend - devbufstart - bytes_to_read); memcpy (buf, devbuf + devbufstart, bytes_to_read); |