From 2bea2c769884e6a80b1fde36b93ddb93ceb5f4e1 Mon Sep 17 00:00:00 2001
From: Emilio Meschi <emilio.meschi@cern.ch>
Date: Thu, 10 Nov 2022 19:51:21 +0100
Subject: [PATCH] Revert "removed some compilation warning"

This reverts commit a56024f9f9b3c293aa503adc0ce70409b8ee2610
---
 src/tools.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tools.h b/src/tools.h
index 435e3cfb..db68ba46 100644
--- a/src/tools.h
+++ b/src/tools.h
@@ -57,7 +57,7 @@ namespace filesystem {
 inline bool create_directories(std::string &path) {
   char tmp[PATH_MAX];
 
-  // Add terminating '/' and make a writable copy;
+  // Add terminating '/' and make a writtable copy;
   int len = snprintf(tmp, sizeof(tmp), "%s/", path.c_str());
   if (len > PATH_MAX) len = PATH_MAX;
 
@@ -65,7 +65,7 @@ inline bool create_directories(std::string &path) {
   for (char *p = tmp; *p; p++) {
     if (*p == '/') {
       // Found a new directory, ignore any subsequent back slashes
-      long int dir_len = p - last_backslash - 1;
+      int dir_len = p - last_backslash - 1;
       if (dir_len > 0) {
         *p = 0;
         if (mkdir(tmp, S_IRWXU | S_IRWXG | S_IRWXO) < 0 && (errno != EEXIST)) {
-- 
GitLab