]> git.ipfire.org Git - thirdparty/util-linux.git/commit
uuidd: move option parsing to separate function
authorSami Kerola <kerolasa@iki.fi>
Fri, 20 Nov 2020 22:27:34 +0000 (22:27 +0000)
committerSami Kerola <kerolasa@iki.fi>
Mon, 23 Nov 2020 21:34:40 +0000 (21:34 +0000)
commit084efcee43fa440ef8fbf9d8e273a7f7098fb810
tree28cef97887e244ea4b33f48913e91e54a7dfa468
parentb03ffec18c6b866bf1d0c06b34115dc12d2c6997
uuidd: move option parsing to separate function

Moving the option parsing to a separate function will allow moving some
variables from main() heap to be in scope that free them later.  That should
make the uuidd to have a little bit smaller runtime memory allocation.

The static long options is changed to be local variable.  That should make
it to be part of heap for a bit, until removed.  Earlier the variable was in
data segment and permanently in runtime memory.  Whether this makes any
impact either way is not entirely clear, but hope is the runtime memory
allocation is tiny bit smaller.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/uuidd.c