summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-04-14 06:43:11 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-04-14 06:43:11 -0700
commit10b6ffd9a5409dc578dfaa58e0d137d3b6c74657 (patch)
treedd439448e4cc50279b763033e86e89ce6f98ad45 /lib.h
parentf5aa16fcc4431d7134da691891b489f6a74da944 (diff)
downloadtxr-10b6ffd9a5409dc578dfaa58e0d137d3b6c74657.tar.gz
txr-10b6ffd9a5409dc578dfaa58e0d137d3b6c74657.tar.bz2
txr-10b6ffd9a5409dc578dfaa58e0d137d3b6c74657.zip
Socket mode strings defaulted and checked.
* stream.c (do_parse_mode): New static function. (parse_mode): Logic moved into do_parse_mode, leaving this function as a wrapper for do_parse_mode. Check added for malformed mode, so functions which call parse_mode now have the check. Added defaulting for mode_str argument, inside do_parse_mode. (normalize_mode): Call do_parse_mode instead of parse_mode. Don't default mode_str argument, since do_parse_mode does that.
Diffstat (limited to 'lib.h')
0 files changed, 0 insertions, 0 deletions