about summary refs log tree commit diff
path: root/src/nix-store/main.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-11-19T17·27+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-11-19T17·27+0000
commit9898746ef3732979bf30e9048021b6232ddf15ac (patch)
tree77f1391387f0e28f5495104fed3e4227bbeb4af3 /src/nix-store/main.cc
parentfd7ac09f1073179d9ac439c3e9fb12a1bf00a7d5 (diff)
* nix-env: a tool to manage user environments.
* Replace all directory reading code by a generic readDirectory()
  function.

Diffstat (limited to 'src/nix-store/main.cc')
-rw-r--r--src/nix-store/main.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nix-store/main.cc b/src/nix-store/main.cc
index 0d87db9dfbb9..c73de52896fb 100644
--- a/src/nix-store/main.cc
+++ b/src/nix-store/main.cc
@@ -251,9 +251,8 @@ void run(Strings args)
     Strings opFlags, opArgs;
     Operation op = 0;
 
-    for (Strings::iterator it = args.begin(); it != args.end(); )
-    {
-        string arg = *it++;
+    for (Strings::iterator i = args.begin(); i != args.end(); ++i) {
+        string arg = *i;
 
         Operation oldOp = op;