Changeset 8077 for lang/c

Show
Ignore:
Timestamp:
03/18/08 18:15:53 (9 months ago)
Author:
frsyuki
Message:

lang/c/partty: show locking state ("*locked*" or "*unlocked*") when the state is toggled.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/c/partty/trunk/src/host.cc

    r8076 r8077  
    224224        for(const char *p=shared_buffer, *p_end=p+len; p != p_end; ++p) { 
    225225                if(*p == m_lock_code) { 
    226                         if(m_lock_code) { 
    227                                 m_lock_code = false; 
     226                        if(m_locking) { 
     227                                m_locking = false; 
    228228                                std::cout << " *unlocked* " << std::flush; 
    229229                        } else { 
    230                                 m_lock_code = true; 
     230                                m_locking = true; 
    231231                                std::cout << " *locked* " << std::flush; 
    232232                        }