chiark / gitweb /
Remove unnecessary casts in printfs
[elogind.git] / src / shared / cgroup-util.c
index 139888c4a11152bafded2f3c032db8f6e706a39c..c1c4d409ae5ee6bcc30d5d743473417861dbc6e4 100644 (file)
@@ -641,7 +641,7 @@ int cg_attach(const char *controller, const char *path, pid_t pid) {
         if (pid == 0)
                 pid = getpid();
 
-        snprintf(c, sizeof(c), "%lu\n", (unsigned long) pid);
+        snprintf(c, sizeof(c), PID_FMT"\n", pid);
 
         return write_string_file(fs, c);
 }