Changeset 7386


Ignore:
Timestamp:
05/01/18 21:14:54 (6 months ago)
Author:
baker
Message:

silence warning: using the result of an assignment as a condition without parentheses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/diagnostic_tools/findwave/findwave.c

    r7246 r7386  
    242242  while ( tport_getmsg( &region, getlogo, (short)2, &logo, &gotsize, 
    243243                        tpkt.msg, MAX_TRACEBUF_SIZ ) != GET_NONE ); 
    244   logit( "et", "FindWave: inRing flushed.\n"); 
     244  logit( "et", "FindWave: inRing flushed.\n" ); 
    245245                           
    246246  /* Listen to ring till told to quit 
     
    265265 
    266266    if ( rc == GET_NOTRACK ) 
    267       logit( "et", "FindWave: Tracking error.\n"); 
     267      logit( "et", "FindWave: Tracking error.\n" ); 
    268268 
    269269    if ( rc == GET_MISS_LAPPED ) 
    270       logit( "et", "FindWave: Got lapped on the ring.\n"); 
     270      logit( "et", "FindWave: Got lapped on the ring.\n" ); 
    271271 
    272272    if ( rc == GET_MISS_SEQGAP ) 
    273       logit( "et", "FindWave: Gap in sequence numbers\n"); 
     273      logit( "et", "FindWave: Gap in sequence numbers\n" ); 
    274274 
    275275    if ( rc == GET_MISS ) 
    276       logit( "et", "FindWave: Missed messages\n"); 
     276      logit( "et", "FindWave: Missed messages\n" ); 
    277277 
    278278    WaveMsg2MakeLocal( &tpkt.trh2 ); 
     
    283283    if (indx == -1 ) /* it's a new one */ 
    284284    { 
    285       if (ret = AddSCNL(SCNLtable, &tpkt.trh2, gotsize, &logo ) <0) 
    286       { 
    287         logit("et","Table overflow. More than %d SCNLs found\n",TABLELEN); 
    288       } 
     285      ret = AddSCNL( SCNLtable, &tpkt.trh2, gotsize, &logo ); 
     286      if ( ret < 0 ) 
     287        logit( "et", "Table overflow. More than %d SCNLs found\n", TABLELEN ); 
    289288    } 
    290289    else 
Note: See TracChangeset for help on using the changeset viewer.