Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
genskel: fix bug in namings
[src/app-framework-binder.git]
/
src
/
afb-evt.c
diff --git
a/src/afb-evt.c
b/src/afb-evt.c
index
0979db8
..
1c81fd5
100644
(file)
--- a/
src/afb-evt.c
+++ b/
src/afb-evt.c
@@
-312,7
+312,7
@@
static void evt_destroy(struct afb_evt_event *evt)
struct afb_event afb_evt_create_event(const char *name)
{
size_t len;
struct afb_event afb_evt_create_event(const char *name)
{
size_t len;
- struct afb_evt_event *evt;
+ struct afb_evt_event *evt
, *oevt
;
/* allocates the event */
len = strlen(name);
/* allocates the event */
len = strlen(name);
@@
-320,10
+320,6
@@
struct afb_event afb_evt_create_event(const char *name)
if (evt == NULL)
goto error;
if (evt == NULL)
goto error;
- /* initialize the event */
- evt->watchs = NULL;
- memcpy(evt->name, name, len + 1);
-
/* allocates the id */
pthread_mutex_lock(&events_mutex);
do {
/* allocates the id */
pthread_mutex_lock(&events_mutex);
do {
@@
-333,10
+329,10
@@
struct afb_event afb_evt_create_event(const char *name)
}
if (!event_id_wrapped)
break;
}
if (!event_id_wrapped)
break;
- evt = events;
- while(
evt != NULL &&
evt->id != event_id_counter)
-
evt =
evt->next;
- } while (evt != NULL);
+
o
evt = events;
+ while(
oevt != NULL && o
evt->id != event_id_counter)
+
oevt = o
evt->next;
+ } while (
o
evt != NULL);
/* initialize the event */
memcpy(evt->name, name, len + 1);
/* initialize the event */
memcpy(evt->name, name, len + 1);