diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2015-09-29 11:10:01 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-11-16 15:34:41 +0100 |
commit | 157f50577fbee094eb8ca18f3f0af4e82af8558f (patch) | |
tree | e5433ebaf3fa89c972478877d7b808f1a0a53000 /src/basic/async.c | |
parent | 6230bf750a4c41ff9a7ec291243fc92b059e896b (diff) |
login: make user_new() and user_free() follow coding-style
Few changes to user_new() and user_free():
- Use _cleanup_(user_freep) in constructor
- return 'int' from user_new()
- make user_free() deal with partially initialized objects
- keep reverse-order in user_free() compared to user_new()
- make user_free() return NULL
- make user_free() accept NULL as no-op
Diffstat (limited to 'src/basic/async.c')
0 files changed, 0 insertions, 0 deletions