buf16_to_ushort (const void *buffer)
{
  const unsigned char *p = buffer;

  return (((unsigned short)p[0] << 8) | p[1]);
}
buf16_to_ushort (const void *buffer)
{
  const unsigned char *p = buffer;

  return (((unsigned short)p[0] << 8) | p[1]);
}