patch: remove obsolete 7zip fix

This commit is contained in:
alexey.lysiuk 2024-06-05 11:00:44 +03:00
parent a68d899e61
commit 59fb74e5e3

View file

@ -1,27 +0,0 @@
--- a/C/Threads.c
+++ b/C/Threads.c
@@ -371,10 +371,11 @@
WRes Event_Set(CEvent *p)
{
+ int res1, res2;
RINOK(pthread_mutex_lock(&p->_mutex))
p->_state = True;
- int res1 = pthread_cond_broadcast(&p->_cond);
- int res2 = pthread_mutex_unlock(&p->_mutex);
+ res1 = pthread_cond_broadcast(&p->_cond);
+ res2 = pthread_mutex_unlock(&p->_mutex);
return (res2 ? res2 : res1);
}
--- a/CPP/7zip/UI/Common/EnumDirItems.cpp
+++ b/CPP/7zip/UI/Common/EnumDirItems.cpp
@@ -287,7 +287,7 @@
CObjectVector<NFind::CDirEntry> entries;
- for (unsigned ttt = 0; ; ttt++)
+ for (;;)
{
bool found;
NFind::CDirEntry de;