1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 10:31:15 +02:00

Use std::vector::data()

This commit is contained in:
Eelco Dolstra 2015-06-09 10:50:55 +02:00
parent f2b67fbf2a
commit 7c4501886d
3 changed files with 8 additions and 12 deletions

View file

@ -295,7 +295,7 @@ MakeError(ExecError, Error)
/* Convert a list of strings to a null-terminated vector of char
*'s. The result must not be accessed beyond the lifetime of the
list of strings. */
std::vector<const char *> stringsToCharPtrs(const Strings & ss);
std::vector<char *> stringsToCharPtrs(const Strings & ss);
/* Close all file descriptors except stdin, stdout, stderr, and those
listed in the given set. Good practice in child processes. */