Fix up indentation in gnc-keyring.c.

It was partly gnu-style.
This commit is contained in:
John Ralls 2020-01-19 14:02:36 -08:00
parent 2c45e0ecba
commit 08fd3e9797

View File

@ -126,21 +126,25 @@ void gnc_keyring_set_password (const gchar *access_method,
// FIXME I'm not sure this works if a password was already in the keychain
// I may have to do a lookup first and if it exists, run some
// update function instead
status = SecKeychainAddInternetPassword ( NULL, /* keychain */
status =
SecKeychainAddInternetPassword (NULL, /* keychain */
strlen(server), server, /* servername */
strlen(access_method), access_method, /* securitydomain */
strlen(access_method),
access_method, /* securitydomain */
strlen(user), user, /* acountname */
strlen(service), service, /* path */
port, /* port */
kSecProtocolTypeAny, /* protocol */
kSecAuthenticationTypeDefault, /* auth type */
strlen(password), password, /* passworddata */
strlen(password),
password, /* passworddata */
itemRef );
if ( status != noErr )
{
CFStringRef osx_resultstring = SecCopyErrorMessageString( status, NULL );
const gchar *resultstring = CFStringGetCStringPtr(osx_resultstring,
const gchar *resultstring =
CFStringGetCStringPtr(osx_resultstring,
GetApplicationTextEncoding());
PWARN ( "OS X keychain error: %s", resultstring );
PWARN ( "The user will be prompted for a password again next time." );