Xinqi Bao's Git

Audit slstatus.c
authorLaslo Hunhold <[email protected]>
Fri, 18 May 2018 08:07:50 +0000 (10:07 +0200)
committerAaron Marcher <[email protected]>
Fri, 18 May 2018 08:08:03 +0000 (10:08 +0200)
 1) Remove setlocale() (locales are harmful and any 'issues' shall
    be fixed in different ways that are expected).
 2) Disable buffering on stdout with setbuf() rather than flushing
    it each time.
 3) Make error messages more consistent.
 4) Add error checks where applicable.
 5) Make code a bit more readable where res is assigned.
 6) Use XFlush() rather than XSync() (we don't need to wait for the
    XServer to react, which could lead to long hangs on our side).


No differences found