Deleted Added
full compact
msdosfs_conv.c (298664) msdosfs_conv.c (298806)
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_conv.c 298664 2016-04-26 20:36:32Z kp $ */
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_conv.c 298806 2016-04-29 20:51:24Z pfg $ */
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 *

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

754 }
755
756 if (unlen > WIN_MAXLEN)
757 return 0;
758 return howmany(unlen, WIN_CHARS);
759}
760
761/*
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 *

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

754 }
755
756 if (unlen > WIN_MAXLEN)
757 return 0;
758 return howmany(unlen, WIN_CHARS);
759}
760
761/*
762 * Determine the number of bytes neccessary for Win95 names
762 * Determine the number of bytes necessary for Win95 names
763 */
764size_t
765winLenFixup(const u_char *un, size_t unlen)
766{
767 for (un += unlen; unlen > 0; unlen--)
768 if (*--un != ' ' && *un != '.')
769 break;
770 return unlen;

--- 308 unchanged lines hidden ---
763 */
764size_t
765winLenFixup(const u_char *un, size_t unlen)
766{
767 for (un += unlen; unlen > 0; unlen--)
768 if (*--un != ' ' && *un != '.')
769 break;
770 return unlen;

--- 308 unchanged lines hidden ---