Age | Commit message (Collapse) | Author |
|
Add --enable-runtime-debugging option to ./configure.
Add example logmsg() to tacc.c so it can be built with debugging.
Fix logmsg() prototype (it's supposed to match the prototype of
syslog() which returns void).
Export build-time value of --enable-runtime-debugging into libtac.pc.
|
|
Add option to specify modem port, etc.
|
|
authenticate() doesn't handle the case of an ASCII login which
results in a continue request being required to complete the
transaction.
|
|
Extracting the tty name or port name from the controlling terminal
of a Unix process is a questionable assumption. Further, for
automated testing, you might want the reproducibility of being
able to explicitly set the terminal name. To get the same
functionality as before, one can pass in "tacc ... -y `tty`" as
an extra argument.
|
|
Also, correct the -DTACDEBUG_AT_RUNTIME scenario so that TACDEBUG()
binds correct when used in an if-body with an else following it, e.g.:
if (test)
TACDEBUG(LOG_DEBUG, "test is true");
else
return;
would previously have ended up as expanding to:
if (test)
if (tac_debug_enable) logmsg(LOG_DEBUG, "test is true");
else
return;
with the indent redone to reflect the nesting correctly. This now
expands (correctly) to:
if (test)
do { if (tac_debug_enable) logmsg(LOG_DEBUG, "test is true"); } while (0);
else
return;
|
|
And fix subsequent warnings caused by:
- shadowed variables (i.e. variables existing in nested scopes);
- signed vs. unsigned comparisons
- string pointers and buffers being unsigned which don't need to be;
- unnecessary casts;
- unused variables (or only used when debugging is enabled);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|