Changeset 1218


Ignore:
Timestamp:
01/14/10 09:33:22 (11 years ago)
Author:
cogsi
Message:

Macro naming now better represents code function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module-cccam.c

    r1217 r1218  
    165165
    166166#define SWAPC(X, Y) do { char p; p = *X; *X = *Y; *Y = p; } while(0)
    167 #define X_FREE(X) do { if (X) { free(X); X = NULL; } } while(0)
     167#define NULLFREE(X) do { if (X) { free(X); X = NULL; } } while(0)
    168168
    169169#if (defined(WIN32) || defined(OS_CYGWIN32)) && !defined(MSG_WAITALL)
     
    383383  n = send(client[cs_idx].udp_fd, netbuf, len, 0);
    384384
    385   X_FREE(netbuf);
     385  NULLFREE(netbuf);
    386386
    387387  return n;
     
    548548    n = cc_cmd_send(ecmbuf, cur_er->l+13, MSG_ECM);      // send ecm
    549549
    550     X_FREE(ecmbuf);
     550    NULLFREE(ecmbuf);
    551551  } else {
    552552    n = -1;
     
    775775  }
    776776
    777   X_FREE(cbuf);
     777  NULLFREE(cbuf);
    778778
    779779  pthread_mutex_unlock(&cc->lock);
     
    791791  struct cc_data *cc;
    792792
    793   if (reader[ridx].cc) X_FREE(reader[ridx].cc);
     793  if (reader[ridx].cc) NULLFREE(reader[ridx].cc);
    794794
    795795  // init internals data struct
Note: See TracChangeset for help on using the changeset viewer.