]> git.ipfire.org Git - thirdparty/chrony.git/commit
Refactor command parsing
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 9 May 2013 15:29:37 +0000 (17:29 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 15 May 2013 09:27:38 +0000 (11:27 +0200)
commit0f8def4ca4237495f13a93384ded9245495e3c8f
tree8b40ce5e4fdfd21c85207b12f505f3d0d6fd9d02
parent182ec04e24f554566c09ea77ad05dd7ba9a0b652
Refactor command parsing

- normalize command line before parsing
- compare whole words
- check for missing/extra arguments in config parsing
- use strdup for string allocation
- share code for reporting syntax errors
- avoid using function pointers
- cleanup the code a bit
client.c
cmdmon.c
cmdparse.c
cmdparse.h
conf.c
main.c