Changeset 1593

Show
Ignore:
Timestamp:
03/10/10 23:34:49 (6 months ago)
Author:
marek
Message:

batctl: don't warn when identical bat-host entries are found

Signed-off-by: Marek Lindner <lindner_marek@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/batctl-0.2.x/bat-hosts.c

    r1592 r1593  
    9999                /* mac entry already exists - we found a new name for it */ 
    100100                if (bat_host) { 
     101                        /* if the mac addresses and the names are the same we can safely ignore the entry */ 
     102                        if (strcmp(bat_host->name, name) == 0) 
     103                                continue; 
     104 
    101105                        fprintf(stderr, "Warning - mac already known (changing name from '%s' to '%s'): %s\n", 
    102106                                        bat_host->name, name, mac_str);