Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106965212
D43205.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
449 B
Referenced Files
None
Subscribers
None
D43205.diff
View Options
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -50,7 +50,12 @@
typedef struct fsid { int32_t val[2]; } fsid_t; /* filesystem id type */
-#define fsidcmp(a, b) memcmp((a), (b), sizeof(fsid_t))
+/* Returns non-zero if fsids are different. */
+static inline int
+fsidcmp(const fsid_t *a, const fsid_t *b)
+{
+ return (a->val[0] != b->val[0] || a->val[1] != b->val[1]);
+}
/*
* File identifier.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 9, 4:53 AM (6 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15729691
Default Alt Text
D43205.diff (449 B)
Attached To
Mode
D43205: Convert fsidcmp(9) from macro to inline function
Attached
Detach File
Event Timeline
Log In to Comment