diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 12:42:38 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 12:42:38 +0800 |
commit | afcfe1bf43eab83357f88fc71ddeb9b0356fd3d0 (patch) | |
tree | 1cc810081dc37aeb623a06e76e290e1e10ee0b6f /test.c | |
parent | bf2f5bae48a3f7daee7f2096328dada68eacd3fd (diff) |
More consistent function names
and make static reusable functions in the implementation
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,7 +29,7 @@ int main(void) free(pass); struct rt_user *user = NULL; - if (rtclient_get_user(&user, name)) + if (rtclient_userget(&user, name)) printf("id: %s\npassword: %s\nname: %s\nemailaddress: %s\nrealname: %s\nnickname: %s\ngecos: %s\norganization: %s\naddress1: %s\naddress2: %s\ncity: %s\nstate: %s\nzip: %s\ncountry: %s\nhomephone: %s\nworkphone: %s\nmobilephone: %s\npagerphone: %s\ncontactinfo: %s\ncomments: %s\nsignature: %s\nlang: %s\nprivileged: %d\ndisabled: %d\n" , user->id, user->password, user->name, user->emailaddress , user->realname, user->nickname, user->gecos @@ -41,7 +41,7 @@ int main(void) , user->disabled); free(name); if (user) - rtclient_user_free(user); + rtclient_userfree(user); rtclient_cleanup(); |