Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154249709
D33052.id98676.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
902 B
Referenced Files
None
Subscribers
None
D33052.id98676.diff
View Options
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -302,16 +302,16 @@
return (0);
}
-int
+bool
__elfN(brand_inuse)(Elf_Brandinfo *entry)
{
struct proc *p;
- int rval = FALSE;
+ bool rval = false;
sx_slock(&allproc_lock);
FOREACH_PROC_IN_SYSTEM(p) {
if (p->p_sysent == entry->sysvec) {
- rval = TRUE;
+ rval = true;
break;
}
}
diff --git a/sys/sys/imgact_elf.h b/sys/sys/imgact_elf.h
--- a/sys/sys/imgact_elf.h
+++ b/sys/sys/imgact_elf.h
@@ -112,7 +112,7 @@
size_t size; /* Total size of all writable segments. */
};
-int __elfN(brand_inuse)(Elf_Brandinfo *entry);
+bool __elfN(brand_inuse)(Elf_Brandinfo *entry);
int __elfN(insert_brand_entry)(Elf_Brandinfo *entry);
int __elfN(remove_brand_entry)(Elf_Brandinfo *entry);
int __elfN(freebsd_fixup)(uintptr_t *, struct image_params *);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 28, 9:53 AM (2 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32267210
Default Alt Text
D33052.id98676.diff (902 B)
Attached To
Mode
D33052: elf*_brand_inuse: Change return type to bool.
Attached
Detach File
Event Timeline
Log In to Comment