Deleted Added
full compact
msdosfs_conv.c (228796) msdosfs_conv.c (249583)
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_conv.c 228796 2011-12-22 06:31:29Z kevlo $ */
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_conv.c 249583 2013-04-17 11:42:40Z gabor $ */
2/* $NetBSD: msdosfs_conv.c,v 1.25 1997/11/17 15:36:40 ws Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1997 Wolfgang Solfrank.
6 * Copyright (C) 1995, 1997 TooLs GmbH.
7 * All rights reserved.
8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below).
9 *

--- 759 unchanged lines hidden (view full) ---

769 }
770
771 if (unlen > WIN_MAXLEN)
772 return 0;
773 return howmany(unlen, WIN_CHARS);
774}
775
776/*
2/* $NetBSD: msdosfs_conv.c,v 1.25 1997/11/17 15:36:40 ws Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1997 Wolfgang Solfrank.
6 * Copyright (C) 1995, 1997 TooLs GmbH.
7 * All rights reserved.
8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below).
9 *

--- 759 unchanged lines hidden (view full) ---

769 }
770
771 if (unlen > WIN_MAXLEN)
772 return 0;
773 return howmany(unlen, WIN_CHARS);
774}
775
776/*
777 * Determine the number of bytes neccesary for Win95 names
777 * Determine the number of bytes neccessary for Win95 names
778 */
779size_t
780winLenFixup(un, unlen)
781 const u_char* un;
782 size_t unlen;
783{
784 for (un += unlen; unlen > 0; unlen--)
785 if (*--un != ' ' && *un != '.')

--- 303 unchanged lines hidden ---
778 */
779size_t
780winLenFixup(un, unlen)
781 const u_char* un;
782 size_t unlen;
783{
784 for (un += unlen; unlen > 0; unlen--)
785 if (*--un != ' ' && *un != '.')

--- 303 unchanged lines hidden ---