]> granicus.if.org Git - nethack/commit
options.c cleanup
authorPatR <rankin@nethack.org>
Tue, 10 Nov 2015 03:20:19 +0000 (19:20 -0800)
committerPatR <rankin@nethack.org>
Tue, 10 Nov 2015 03:20:19 +0000 (19:20 -0800)
commit2e3ef24762bd0ca466fc89706af210eb5cf78c72
tree3f605b20205c3cf338f6ff092fab8e9b2a120111
parent85b234e1fc22c33057358f46c368439905ea6fc4
options.c cleanup

Replace several 'foo = alloc(strlen(bar)+1), strcpy(foo,bar)' sequences
  with 'foo = dupstr(bar)' calls.
Change 'free(foo)' into 'free((genericptr_t) foo)' to possibly pacify
  'lint' and/or really old compilers.
Add braces around 'if something;' when 'else { otherwise; }' has braces.
Simplify option value formatting for 'sortloot'.
src/options.c