diff options
Diffstat (limited to 'lib/cdutils.cpp')
-rw-r--r-- | lib/cdutils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp index 4082267..413f95d 100644 --- a/lib/cdutils.cpp +++ b/lib/cdutils.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: cdutils.cpp,v 1.14 2003-11-23 14:43:06 pixel Exp $ */ +/* $Id: cdutils.cpp,v 1.15 2003-11-25 01:55:45 pixel Exp $ */ #include <stdio.h> #include <string.h> @@ -46,7 +46,7 @@ unsigned char cdutils::to_BCD(unsigned char x) { return ((x / 10) << 4) | (x % 10); } -int cdutils::is_valid_BCD(unsigned char x) { +bool cdutils::is_valid_BCD(unsigned char x) { return (((x & 15) < 10) && ((x >> 4) < 10)); } @@ -337,7 +337,7 @@ int cdutils::show_entry(struct DirEntry * dir) { return 1; } - strncpy(pbuf, (char *) &(dir->id), dir->N); + strncpy(pbuf, dir->id, dir->N); pbuf[dir->N] = 0; if ((dir->N == 1) && (pbuf[0] == 0)) { strcpy(pbuf, "."); |