Changeset 45 in libcf


Ignore:
Timestamp:
03/20/13 15:38:28 (12 years ago)
Author:
cheese
Message:

#1 fix code-style

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cf_log.c

    r42 r45  
    362362    CF_File_Close (context->fd);
    363363
    364     if (context->mutex != NULL)
    365     {
    366         if (CF_Mutex_Destory (&context->mutex) < 0)
    367             /* do something ? */;
    368 
    369         context->mutex = NULL;
    370     }
     364    CF_Mutex_Destory (&context->mutex);
     365    context->mutex = NULL;
    371366
    372367    return CF_OK;
  • trunk/src/cf_socket.c

    r40 r45  
    299299    address.sin_port        = htons (port);
    300300
    301     TRY {
     301    TRY
     302    {
    302303        result = bind (sock, (struct sockaddr *) &address, sizeof (struct sockaddr));
    303304        if (result < 0)
Note: See TracChangeset for help on using the changeset viewer.