Ticket #5772: libs_libmythdb-krazy2-TRUE-FALSE.patch

File libs_libmythdb-krazy2-TRUE-FALSE.patch, 1.6 KB (added by Erik Hovland <erik@…>, 12 years ago)

Replaces TRUE/FALSE with true/false

  • mythtv/libs/libmythdb/mythsocket.cpp

    TRUE and FALSE macros are deprecated. Use true and false instead.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     mythtv/libs/libmythdb/mythsocket.cpp |    6 +++---
     1 files changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/mythtv/libs/libmythdb/mythsocket.cpp b/mythtv/libs/libmythdb/mythsocket.cpp
    index 689320b..c0d3ea0 100644
    a b void MythSocketThread::StartReadyReadThread(void) 
    686686        if (m_readyread_run == false)
    687687        {
    688688#ifdef USING_MINGW
    689             readyreadevent = ::CreateEvent(NULL, FALSE, FALSE, NULL);
     689            readyreadevent = ::CreateEvent(NULL, false, false, NULL);
    690690            assert(readyreadevent);
    691691#else
    692692            int ret = pipe(m_readyread_pipe);
    void MythSocketThread::run(void) 
    824824            if (sock->state() == MythSocket::Connected
    825825                && !sock->m_notifyread && !isLocked(sock->m_lock))
    826826            {
    827                 HANDLE hEvent = ::CreateEvent(NULL, FALSE, FALSE, NULL);
     827                HANDLE hEvent = ::CreateEvent(NULL, false, false, NULL);
    828828                if (!hEvent)
    829829                {
    830830                    VERBOSE(VB_IMPORTANT, "MythSocket: CreateEvent failed");
    void MythSocketThread::run(void) 
    851851        }
    852852
    853853        hEvents[n++] = readyreadevent;
    854         int rval = ::WaitForMultipleObjects(n, hEvents, FALSE, INFINITE);
     854        int rval = ::WaitForMultipleObjects(n, hEvents, false, INFINITE);
    855855
    856856        for (int i = 0; i < (n - 1); i++)
    857857            ::CloseHandle(hEvents[i]);