Changeset 5589:de9dbc2ecc4b in roaraudio for libroar


Ignore:
Timestamp:
07/22/12 13:21:15 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Updated UUID support to fixs shortcoming detected by rpld. Closes: #276 (critical bug)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/uuid.c

    r5505 r5589  
    3636#include "libroar.h" 
    3737 
    38 int roar_uuid_eq(roar_uuid_t a, roar_uuid_t b) { 
     38int roar_uuid_eq(const roar_uuid_t a, const roar_uuid_t b) { 
    3939 if ( a == NULL || b == NULL ) { 
    4040  roar_err_set(ROAR_ERROR_FAULT); 
     
    4242 } 
    4343 
    44  if ( memcpy(a, b, sizeof(roar_uuid_t)) == 0 ) 
     44 if ( memcmp(a, b, sizeof(roar_uuid_t)) == 0 ) 
    4545  return 1; 
    4646 
     
    4848} 
    4949 
    50 int roar_uuid2str(char * str, roar_uuid_t uuid, ssize_t len) { 
     50int roar_uuid2str(char * str, const roar_uuid_t uuid, ssize_t len) { 
    5151 if ( str == NULL || uuid == NULL ) { 
    5252  roar_err_set(ROAR_ERROR_FAULT); 
Note: See TracChangeset for help on using the changeset viewer.