Explorar el Código

cpg: do_proc_join change list_slice to list_add

In this concrete case result is equivalent but makes coverity happy.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
(cherry picked from commit f95d3b3bf206995d0bc04ae4b1855932eaaa4911)
Jan Friesse hace 14 años
padre
commit
3b05151ff1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      services/cpg.c

+ 1 - 1
services/cpg.c

@@ -1009,7 +1009,7 @@ static void do_proc_join(
 		}
 		list_to_add = list;
 	}
-	list_splice (&pi->list, list_to_add);
+	list_add (&pi->list, list_to_add);
 
 	notify_info.pid = pi->pid;
 	notify_info.nodeid = nodeid;