Changeset 06586ba for lib


Ignore:
Timestamp:
07/30/10 00:56:06 (11 years ago)
Author:
Scott Raynel <smr26@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
0896e76
Parents:
efbb6dd
Message:

Clean up an unused variable warning in iow-thread.c and ior-thread.c

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/ior-thread.c

    rab298c4 r06586ba  
    101101        int buffer=0;
    102102        bool running = true;
     103
     104#ifdef PR_SET_NAME
    103105        char namebuf[17];
    104 
    105 #ifdef PR_SET_NAME
    106106        if (prctl(PR_GET_NAME, namebuf, 0,0,0) == 0) {
    107107                namebuf[16] = '\0'; /* Make sure it's NUL terminated */
  • lib/iow-thread.c

    r3b027a6 r06586ba  
    9999        int buffer=0;
    100100        bool running = true;
     101        iow_t *state = (iow_t *) userdata;
     102
     103#ifdef PR_SET_NAME
    101104        char namebuf[17];
    102         iow_t *state = (iow_t *) userdata;
    103 
    104 #ifdef PR_SET_NAME
    105105        if (prctl(PR_GET_NAME, namebuf, 0,0,0) == 0) {
    106106                namebuf[16] = '\0'; /* Make sure it's NUL terminated */
Note: See TracChangeset for help on using the changeset viewer.