Changeset 5413:c4775e53e3a0 in roaraudio


Ignore:
Timestamp:
02/14/12 21:11:31 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixes cppcheck warnings (false-positives)

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_misc.c

    r5388 r5413  
    6565 
    6666static int     roar_vio_misc_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    67  struct roar_vio_misc * self = vio->inst; 
     67 struct roar_vio_misc * self; 
    6868 
    6969 if ( vio == NULL || cmd == -1 ) 
    7070  return -1; 
     71 
     72 self = vio->inst; 
    7173 
    7274 switch (cmd) { 
  • libroar/vio_proto.c

    r5396 r5413  
    254254 
    255255int     roar_vio_proto_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    256  struct roar_vio_proto * self = vio->inst; 
     256 struct roar_vio_proto * self; 
    257257 
    258258 if (vio == NULL || cmd == -1) 
    259259  return -1; 
     260 
     261 self = vio->inst; 
    260262 
    261263 ROAR_DBG("roar_vio_proto_ctl(vio=%p, cmd=0x%.8x, data=%p) = ?", vio, cmd, data); 
  • roarclients/.release-helper

    r5238 r5413  
    33@RM roarcat2sock.c 
    44@RM roarcatad.c 
     5@RM roarfctest.c 
     6@RM pinentrytest.c 
    57#!END 
  • roarclients/Makefile

    r5336 r5413  
    99TARGETS_PLUGINS=roarpluginrunner 
    1010 
    11 #TARGETS_TESTS=pinentrytest zcattest pgptest pipetest polytest roarfctest 
     11#TARGETS_TESTS=zcattest pgptest pipetest polytest 
    1212#TARGETS_OLD=roarcatpassfh roarsocktypes 
    1313 
  • roard/driver_pwmled.c

    r5381 r5413  
    9898// TODO: this function should be optimized. 
    9999ssize_t driver_pwmled_write (struct roar_vio_calls * vio,  void *buf, size_t count) { 
    100  struct driver_pwmled * self = vio->inst; 
     100 struct driver_pwmled * self; 
    101101 int value; 
    102102 
     
    106106 if ( count != 512 ) 
    107107  return -1; 
     108 
     109 self = vio->inst; 
    108110 
    109111 value = ((unsigned char*)buf)[self->channel] / 15; 
     
    123125 
    124126int driver_pwmled_ctl(struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    125  struct driver_pwmled * self = vio->inst; 
     127 struct driver_pwmled * self; 
    126128 
    127129 if ( vio == NULL ) 
    128130  return -1; 
     131 
     132 self = vio->inst; 
    129133 
    130134 switch (cmd) { 
Note: See TracChangeset for help on using the changeset viewer.