Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_dentry.c

    ra1d7b4b ra21d837  
    4343#include <byteorder.h>
    4444#include <assert.h>
     45#include <unistd.h>
     46#include <sys/types.h>
    4547
    4648/** Compare path component with the name read from the dentry.
     
    231233/** Get number of bytes in a string with size limit.
    232234 *
    233  * @param str  NULL-terminated (or not) string.
     235 * @param str  NULL-terminated (or not) string. The pointer comes from a packed
     236 *             structure and as such is expected to be unaligned.
    234237 * @param size Maximum number of bytes to consider.
    235238 *
     
    237240 *
    238241 */
    239 size_t fat_lfn_str_nlength(const uint16_t *str, size_t size)
     242size_t fat_lfn_str_nlength(const unaligned_uint16_t *str, size_t size)
    240243{
    241244        size_t offset = 0;
Note: See TracChangeset for help on using the changeset viewer.