Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153099310
D7532.id19358.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7532.id19358.diff
View Options
Index: usr.sbin/ctld/chap.c
===================================================================
--- usr.sbin/ctld/chap.c
+++ usr.sbin/ctld/chap.c
@@ -232,7 +232,7 @@
{
struct chap *chap;
- chap = calloc(sizeof(*chap), 1);
+ chap = calloc(1, sizeof(*chap));
if (chap == NULL)
log_err(1, "calloc");
@@ -333,7 +333,7 @@
{
struct rchap *rchap;
- rchap = calloc(sizeof(*rchap), 1);
+ rchap = calloc(1, sizeof(*rchap));
if (rchap == NULL)
log_err(1, "calloc");
Index: usr.sbin/ctld/keys.c
===================================================================
--- usr.sbin/ctld/keys.c
+++ usr.sbin/ctld/keys.c
@@ -43,7 +43,7 @@
{
struct keys *keys;
- keys = calloc(sizeof(*keys), 1);
+ keys = calloc(1, sizeof(*keys));
if (keys == NULL)
log_err(1, "calloc");
Index: usr.sbin/ctld/pdu.c
===================================================================
--- usr.sbin/ctld/pdu.c
+++ usr.sbin/ctld/pdu.c
@@ -81,11 +81,11 @@
{
struct pdu *pdu;
- pdu = calloc(sizeof(*pdu), 1);
+ pdu = calloc(1, sizeof(*pdu));
if (pdu == NULL)
log_err(1, "calloc");
- pdu->pdu_bhs = calloc(sizeof(*pdu->pdu_bhs), 1);
+ pdu->pdu_bhs = calloc(1, sizeof(*pdu->pdu_bhs));
if (pdu->pdu_bhs == NULL)
log_err(1, "calloc");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 3:32 AM (4 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31817955
Default Alt Text
D7532.id19358.diff (1 KB)
Attached To
Mode
D7532: Invert calloc(3) argument order.
Attached
Detach File
Event Timeline
Log In to Comment