diff dep/animia/src/fd/linux.cc @ 156:cdf79282d647

dep/animia: add VERY early x11 window stuff
author Paper <mrpapersonic@gmail.com>
date Wed, 15 Nov 2023 18:04:04 -0500
parents d43d68408d3c
children 44c5e6dd9488
line wrap: on
line diff
--- a/dep/animia/src/fd/linux.cc	Wed Nov 15 15:24:39 2023 -0500
+++ b/dep/animia/src/fd/linux.cc	Wed Nov 15 18:04:04 2023 -0500
@@ -1,18 +1,18 @@
-#include "animia/util.h"
 #include "animia/fd/linux.h"
 #include "animia.h"
+#include "animia/util.h"
 
 #include <algorithm>
+#include <cstring>
 #include <filesystem>
 #include <fstream>
 #include <sstream>
 #include <string>
 #include <unordered_map>
 #include <vector>
-#include <cstring>
 
+#include <dirent.h>
 #include <fcntl.h>
-#include <dirent.h>
 #include <sys/stat.h>
 #include <unistd.h>
 
@@ -58,7 +58,7 @@
 		if (!util::ReadFile(path, data))
 			return false;
 		buffer << data;
-	}	
+	}
 
 	int flags = 0;
 	for (std::string line; std::getline(buffer, line);) {
@@ -75,7 +75,7 @@
 static std::string GetFilenameFromFd(std::string link) {
 	/* gets around stupid linux limitation where /proc doesn't
 	   give actual filesize readings */
-	size_t  exe_size = 1024;
+	size_t exe_size = 1024;
 	ssize_t exe_used;
 	std::string ret;