Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178110001
D42580.1795987489.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
516 B
Referenced Files
None
Subscribers
None
D42580.1795987489.diff
View Options
diff --git a/usr.sbin/makefs/cd9660.c b/usr.sbin/makefs/cd9660.c
--- a/usr.sbin/makefs/cd9660.c
+++ b/usr.sbin/makefs/cd9660.c
@@ -1508,10 +1508,10 @@
TAILQ_INSERT_HEAD(&pt_head, n, ptq);
/* Breadth-first traversal of file structure */
- while (pt_head.tqh_first != 0) {
- n = pt_head.tqh_first;
+ while (!TAILQ_EMPTY(&pt_head)) {
+ n = TAILQ_FIRST(&pt_head);
dirNode = n->node;
- TAILQ_REMOVE(&pt_head, pt_head.tqh_first, ptq);
+ TAILQ_REMOVE(&pt_head, n, ptq);
free(n);
/* Update the size */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 29, 9:24 PM (19 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42096741
Default Alt Text
D42580.1795987489.diff (516 B)
Attached To
Mode
D42580: makefs cd9660: Unexpand a few TAILQ macros
Attached
Detach File
Event Timeline