projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c775894
)
shared_malloc returns NULL on failure
author
Brendan O'Dea
<bod@optus.net>
Thu, 28 Oct 2004 03:26:41 +0000
(
03:26
+0000)
committer
Brendan O'Dea
<bod@optus.net>
Thu, 28 Oct 2004 03:26:41 +0000
(
03:26
+0000)
tbf.c
patch
|
blob
|
history
diff --git
a/tbf.c
b/tbf.c
index
0f6cf5b
..
459c049
100644
(file)
--- a/
tbf.c
+++ b/
tbf.c
@@
-1,6
+1,6
@@
// L2TPNS: token bucket filters
// L2TPNS: token bucket filters
-char const *cvs_id_tbf = "$Id: tbf.c,v 1.
6 2004-09-02 04:18:07 fred_nerk
Exp $";
+char const *cvs_id_tbf = "$Id: tbf.c,v 1.
7 2004-10-28 03:26:41 bodea
Exp $";
#define _GNU_SOURCE
#define _GNU_SOURCE
@@
-21,7
+21,7
@@
static void tbf_run_queue(int tbf_id);
void init_tbf(void)
{
void init_tbf(void)
{
- if (
(filter_list = shared_malloc(sizeof(*filter_list) * MAXTBFS)) == MAP_FAILED
)
+ if (
!(filter_list = shared_malloc(sizeof(*filter_list) * MAXTBFS))
)
return;
filter_list_size = MAXTBFS;
return;
filter_list_size = MAXTBFS;