aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/args.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-10-06 13:36:55 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-10-06 13:49:20 +0200
commit85c8be6286e8f5464813a8a29b0b78d892498745 (patch)
treee270b31fa13afd6e87e610f41fcffe039d4381bd /src/libutil/args.cc
parent0419cd26954d9d7c5b5ace96501b41cc81d66eed (diff)
Remove static variable name clashes
This was useful for an experiment with building Nix as a single compilation unit. It's not very useful otherwise but also doesn't hurt...
Diffstat (limited to 'src/libutil/args.cc')
-rw-r--r--src/libutil/args.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/args.cc b/src/libutil/args.cc
index 147602415..2760b830b 100644
--- a/src/libutil/args.cc
+++ b/src/libutil/args.cc
@@ -277,7 +277,7 @@ Args::Flag Args::Flag::mkHashTypeOptFlag(std::string && longName, std::optional<
};
}
-static void completePath(std::string_view prefix, bool onlyDirs)
+static void _completePath(std::string_view prefix, bool onlyDirs)
{
pathCompletions = true;
glob_t globbuf;
@@ -300,12 +300,12 @@ static void completePath(std::string_view prefix, bool onlyDirs)
void completePath(size_t, std::string_view prefix)
{
- completePath(prefix, false);
+ _completePath(prefix, false);
}
void completeDir(size_t, std::string_view prefix)
{
- completePath(prefix, true);
+ _completePath(prefix, true);
}
Strings argvToStrings(int argc, char * * argv)