diff --git a/include/cdio/udf_file.h b/include/cdio/udf_file.h index 2a527b80..647ec836 100644 --- a/include/cdio/udf_file.h +++ b/include/cdio/udf_file.h @@ -1,5 +1,5 @@ /* - $Id: udf_file.h,v 1.4 2005/11/02 03:42:49 rocky Exp $ + $Id: udf_file.h,v 1.5 2005/11/02 03:49:15 rocky Exp $ Copyright (C) 2005 Rocky Bernstein This program is free software; you can redistribute it and/or modify @@ -54,7 +54,7 @@ extern "C" { uint16_t udf_get_link_count(const udf_dirent_t *p_udf_dirent); /*! - Return the Length of the file/directory. + Return the file length the file. Return 2147483647L if error. */ uint64_t udf_get_file_length(const udf_dirent_t *p_udf_dirent); diff --git a/lib/udf/udf_file.c b/lib/udf/udf_file.c index 1dbc79c8..3949abe4 100644 --- a/lib/udf/udf_file.c +++ b/lib/udf/udf_file.c @@ -1,5 +1,5 @@ /* - $Id: udf_file.c,v 1.4 2005/11/02 03:42:50 rocky Exp $ + $Id: udf_file.c,v 1.5 2005/11/02 03:49:15 rocky Exp $ Copyright (C) 2005 Rocky Bernstein @@ -72,14 +72,14 @@ uint16_t udf_get_link_count(const udf_dirent_t *p_udf_dirent) } /*! - Return the number of hard links of the file. Return 0 if error. + Return the file length the file. Return 2147483647L if error. */ uint64_t udf_get_file_length(const udf_dirent_t *p_udf_dirent) { if (p_udf_dirent) { return uint64_from_le(p_udf_dirent->fe.info_len); } - return 0; /* Error. Non-error case handled above. */ + return 2147483647L; /* Error. Non-error case handled above. */ } /*!