]> git.tuebingen.mpg.de Git - paraslash.git/commit
Introduce create_shifted_argv().
authorAndre Noll <maan@systemlinux.org>
Sun, 29 Jul 2012 16:39:58 +0000 (18:39 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 27 Aug 2012 11:01:07 +0000 (13:01 +0200)
commitbd533f99665cab3c9d64c14c242a8f80bdce71c5
tree0e3f3c2742f41d73344bbb9c43a69d63fdf4ca6c
parentce7c28cf7098ad1cc80318fff16ed9e4ab52154e
Introduce create_shifted_argv().

In order to create argument vectors for the gengetopt parsers,
filter_common.c and recv_common.c call create_argv() on the given
--filter or --receiver option, then shift the returned array by one
to the right because gengetopt expects the program name in argv[0].

This commit creates a new helper function for this purpose and changes
the two callers to use the new function.
filter_common.c
recv_common.c
string.c
string.h