diff dep/animia/src/fd/bsd.cc @ 151:54744a48a7d7

last commit part 2: struct init with {} is valid syntax, actually
author Paper <mrpapersonic@gmail.com>
date Tue, 14 Nov 2023 16:31:21 -0500
parents ffa535b6d630
children 8700806c2cc2
line wrap: on
line diff
--- a/dep/animia/src/fd/bsd.cc	Tue Nov 14 16:27:33 2023 -0500
+++ b/dep/animia/src/fd/bsd.cc	Tue Nov 14 16:31:21 2023 -0500
@@ -109,11 +109,7 @@
 					continue;
 				*/
 
-				OpenFile file;
-				file.pid = pid;
-				file.path = vnodeInfo.pvip.vip_path;
-
-				files.push_back(file);
+				files.push_back({pid, vnodeInfo.pvip.vip_path});
 			}
 		}
 	}