Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This is a collection of basic libraries.
## Data Struct
| | |
|--|--|
| libdict: Hash key-value dictonary library | libhash: Hash key-value library based on hlist from kernel |
| libdict: Hash key-value dictionary library | libhash: Hash key-value library based on hlist from kernel |
| libringbuffer: | libqueue: queue library, support memory hook |
| librbtree: comes from linux kernel rbtree. | libsort: |
| libvector: | libdarray: Dynamic array |
Expand Down
6 changes: 3 additions & 3 deletions gear-lib/libgevent/libgevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ void gevent_destroy(struct gevent *e)
int gevent_add(struct gevent_base *eb, struct gevent **e)
{
if (!e || !eb) {
printf("%s:%d paraments is NULL\n", __func__, __LINE__);
printf("%s:%d parameters is NULL\n", __func__, __LINE__);
return -1;
}
da_push_back(eb->ev_array, e);
Expand All @@ -332,7 +332,7 @@ int gevent_del(struct gevent_base *eb, struct gevent **e)
{
int ret;
if (!e || !eb) {
printf("%s:%d paraments is NULL\n", __func__, __LINE__);
printf("%s:%d parameters is NULL\n", __func__, __LINE__);
return -1;
}
ret = eb->ops->del(eb, *e);
Expand All @@ -343,7 +343,7 @@ int gevent_del(struct gevent_base *eb, struct gevent **e)
int gevent_mod(struct gevent_base *eb, struct gevent **e)
{
if (!e || !eb) {
printf("%s:%d paraments is NULL\n", __func__, __LINE__);
printf("%s:%d parameters is NULL\n", __func__, __LINE__);
return -1;
}
da_erase_item(eb->ev_array, e);
Expand Down