core: swap order of "n_storage_fds" and "n_socket_fds" parameters
authorLennart Poettering <lennart@poettering.net>
Thu, 5 Jul 2018 07:56:54 +0000 (09:56 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 25 Jul 2018 20:48:11 +0000 (22:48 +0200)
commit25b583d7ffd699384435eba8e49f6ce927a83af0
tree481e450ca8b0fc950aebd678070ba20f6bf66959
parenta8c9b7a0fc0aa02666042543ff9a652aae3c9499
core: swap order of "n_storage_fds" and "n_socket_fds" parameters

When process fd lists to pass to activated programs we always place the
socket activation fds first, and the storage fds last. Irritatingly in
almost all calls the "n_storage_fds" parameter (i.e. the number of
storage fds to pass) came first so far, and the "n_socket_fds" parameter
second. Let's clean this up, and specify the number of fds in the order
the fds themselves are passed.

(Also, let's fix one more case where "unsigned" was used to size an
array, while we should use "size_t" instead.)
src/core/execute.c
src/core/execute.h
src/core/service.c