Просмотр исходного кода

Remove scandir error=%s printf since it spews a bunch of errors when the
aisexec is run after a make install


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1049 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 20 лет назад
Родитель
Сommit
2eafd51e3d
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      lcr/lcr_ifact.c

+ 1 - 3
lcr/lcr_ifact.c

@@ -277,9 +277,7 @@ static int interface_find_and_load (
 	char dl_name[1024];
 
 	scandir_entries = scandir (path,  &scandir_list, lcr_select_so, alphasort);
-	if (scandir_entries < 0)
-		printf ("scandir error reason=%s\n", strerror (errno));
-	else
+	if (scandir_entries > 0)
 	/*
 	 * no error so load the object
 	 */