diff options
Diffstat (limited to 'base/file_descriptor_shuffle.h')
-rw-r--r-- | base/file_descriptor_shuffle.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/base/file_descriptor_shuffle.h b/base/file_descriptor_shuffle.h index e1c93cd..e0cb88b 100644 --- a/base/file_descriptor_shuffle.h +++ b/base/file_descriptor_shuffle.h @@ -69,13 +69,9 @@ typedef std::vector<InjectionArc> InjectiveMultimap; bool PerformInjectiveMultimap(const InjectiveMultimap& map, InjectionDelegate* delegate); -bool PerformInjectiveMultimapDestructive(InjectiveMultimap* map, - InjectionDelegate* delegate); - -// This function will not call malloc but will mutate |map| -static inline bool ShuffleFileDescriptors(InjectiveMultimap* map) { +static inline bool ShuffleFileDescriptors(const InjectiveMultimap& map) { FileDescriptorTableInjection delegate; - return PerformInjectiveMultimapDestructive(map, &delegate); + return PerformInjectiveMultimap(map, &delegate); } } // namespace base |