From afcfe1bf43eab83357f88fc71ddeb9b0356fd3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Thu, 12 Sep 2019 12:42:38 +0800 Subject: More consistent function names and make static reusable functions in the implementation --- test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test.c') diff --git a/test.c b/test.c index 87c3b18..43c034c 100644 --- a/test.c +++ b/test.c @@ -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(); -- cgit v1.2.3