From 5ebff60479fc7a9f7f50ac03b124c91d4e6ebe11 Mon Sep 17 00:00:00 2001 From: Indent Date: Thu, 19 Feb 2015 02:47:20 -0300 Subject: Reindent everything to K&R style with tabs Used uncrustify, with the configuration file in ./doc/uncrustify.cfg Commit author set to "Indent " so that it's easier to skip while doing git blame. --- lib/oauth2.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'lib/oauth2.h') diff --git a/lib/oauth2.h b/lib/oauth2.h index b3811f49..4d6abdb1 100644 --- a/lib/oauth2.h +++ b/lib/oauth2.h @@ -24,11 +24,10 @@ /* Implementation mostly based on my experience with writing the previous OAuth module, and from http://code.google.com/apis/accounts/docs/OAuth2.html . */ -typedef void (*oauth2_token_callback)( gpointer data, const char *atoken, - const char *rtoken, const char *error ); +typedef void (*oauth2_token_callback)(gpointer data, const char *atoken, + const char *rtoken, const char *error); -struct oauth2_service -{ +struct oauth2_service { char *auth_url; char *token_url; char *redirect_url; @@ -42,10 +41,10 @@ struct oauth2_service /* Generate a URL the user should open in his/her browser to get an authorization code. */ -char *oauth2_url( const struct oauth2_service *sp ); +char *oauth2_url(const struct oauth2_service *sp); /* Exchanges an auth code or refresh token for an access token. auth_type is one of the two OAUTH2_AUTH_.. constants above. */ -int oauth2_access_token( const struct oauth2_service *sp, - const char *auth_type, const char *auth, - oauth2_token_callback func, gpointer data ); +int oauth2_access_token(const struct oauth2_service *sp, + const char *auth_type, const char *auth, + oauth2_token_callback func, gpointer data); -- cgit v1.2.3