Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101991573
D46010.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
381 B
Referenced Files
None
Subscribers
None
D46010.id.diff
View Options
diff --git a/sbin/recoverdisk/recoverdisk.c b/sbin/recoverdisk/recoverdisk.c
--- a/sbin/recoverdisk/recoverdisk.c
+++ b/sbin/recoverdisk/recoverdisk.c
@@ -82,7 +82,7 @@
pp = TAILQ_FIRST(ph);
if (pp == NULL || pp->t1 < now) {
- pp = calloc(sizeof *pp, 1L);
+ pp = calloc(1, sizeof(*pp));
assert(pp != NULL);
pp->t0 = (now / dt) * dt;
pp->t1 = (now / dt + 1) * dt;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 6:56 AM (11 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14506432
Default Alt Text
D46010.id.diff (381 B)
Attached To
Mode
D46010: recoverdisk: Consistently use item count as the first argument to calloc
Attached
Detach File
Event Timeline
Log In to Comment