SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
22
net/crawl/patches/patch-cfg_c
Normal file
22
net/crawl/patches/patch-cfg_c
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- cfg.c.orig Wed Dec 12 23:40:45 2001
|
||||
+++ cfg.c Sat May 22 16:42:06 2010
|
||||
@@ -182,7 +182,8 @@ conf_set_now (char *section, char *tag, char *value, i
|
||||
|
||||
node = calloc (1, sizeof *node);
|
||||
if (!node) {
|
||||
- warn("conf_set: calloc (1, %d) failed", sizeof *node);
|
||||
+ warn("conf_set: calloc (1, %lu) failed",
|
||||
+ (unsigned long)sizeof *node);
|
||||
return (1);
|
||||
}
|
||||
node->section = strdup (section);
|
||||
@@ -612,7 +613,8 @@ conf_trans_node (int transaction, enum conf_op op)
|
||||
|
||||
node = calloc (1, sizeof *node);
|
||||
if (!node) {
|
||||
- warn("conf_trans_node: calloc (1, %d) failed", sizeof *node);
|
||||
+ warn("conf_trans_node: calloc (1, %lu) failed",
|
||||
+ (unsigned long)sizeof *node);
|
||||
return (0);
|
||||
}
|
||||
node->trans = transaction;
|
Loading…
Add table
Add a link
Reference in a new issue