Ignore:
Timestamp:
2011-07-08T07:20:24+02:00 (5 years ago)
Author:
nbd
Message:

firmware-utils: rename the devname variable in mkwrgimg to avoid a clash with a BSD stdlib function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/firmware-utils/src/mkwrgimg.c

    r27438 r27553  
    5050static char *ofname; 
    5151static char *signature; 
    52 static char *devname; 
     52static char *dev_name; 
    5353static uint32_t offset; 
    5454static int big_endian; 
     
    129129                        break; 
    130130                case 'd': 
    131                         devname = optarg; 
     131                        dev_name = optarg; 
    132132                        break; 
    133133                case 'i': 
     
    168168        } 
    169169 
    170         if (devname == NULL) { 
     170        if (dev_name == NULL) { 
    171171                ERR("no device name specified"); 
    172172                goto err; 
     
    203203 
    204204        strncpy(header->signature, signature, sizeof(header->signature)); 
    205         strncpy(header->devname, devname, sizeof(header->signature)); 
     205        strncpy(header->devname, dev_name, sizeof(header->signature)); 
    206206        put_u32(&header->magic1, WRG_MAGIC); 
    207207        put_u32(&header->magic2, WRG_MAGIC); 
Note: See TracChangeset for help on using the changeset viewer.