]> git.sesse.net Git - plocate/commitdiff
Run clang-format.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Wed, 25 Nov 2020 00:02:25 +0000 (01:02 +0100)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Wed, 25 Nov 2020 00:02:25 +0000 (01:02 +0100)
database-builder.cpp
updatedb.cpp

index 642420f3c5942b6021157a2e19d559b751cdb255..af688cf78186886d71507b95fdc26b6ca27bc2ca 100644 (file)
@@ -224,7 +224,8 @@ void Corpus::add_file(string filename, dir_time dt)
        }
 }
 
-void Corpus::compress_dir_times(size_t allowed_slop) {
+void Corpus::compress_dir_times(size_t allowed_slop)
+{
        while (dir_times.size() >= allowed_slop) {
                size_t old_size = dir_times_compressed.size();
                dir_times_compressed.resize(old_size + 4096);
@@ -313,7 +314,7 @@ string Corpus::get_compressed_dir_times()
        compress_dir_times(/*allowed_slop=*/0);
        assert(dir_times.empty());
 
-       for ( ;; ) {
+       for (;;) {
                size_t old_size = dir_times_compressed.size();
                dir_times_compressed.resize(old_size + 4096);
 
index 908f47758205dc662c4cfae9bf8e76051839f02a..6596ca1c141983f976a479ede399f307037a2ffc 100644 (file)
@@ -49,10 +49,10 @@ any later version.
 #include <stdlib.h>
 #include <string.h>
 #include <string>
+#include <sys/resource.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <sys/types.h>
-#include <sys/resource.h>
 #include <unistd.h>
 #include <utility>
 #include <vector>
@@ -679,7 +679,7 @@ int scan(const string &path, int fd, dev_t parent_dev, dir_time modified, dir_ti
                                        fprintf(stderr, "Hint: Try `ulimit -n 131072' or similar.\n");
                                } else {
                                        fprintf(stderr, "Hint: Try `ulimit -n %lu' or similar (current limit is %lu).\n",
-                                               rlim.rlim_cur * 2, rlim.rlim_cur);
+                                               rlim.rlim_cur * 2, rlim.rlim_cur);
                                }
                                exit(1);
                        }