Permalink
Browse files

add .gitignore.

fix style.
  • Loading branch information...
1 parent 1b0b598 commit ae90f7328d7ebb94e0508f3a10ae705dbecc737f @shugo committed Apr 10, 2012
Showing with 7 additions and 3 deletions.
  1. +3 −0 .gitignore
  2. +4 −3 git-credential-gnomekeyring.c
View
@@ -0,0 +1,3 @@
+*.swp
+*.o
+git-credential-gnomekeyring
@@ -143,7 +143,8 @@ clear_credential(git_credential_t *cred)
if (cred->password) gnome_keyring_free_password(cred->password);
}
-int main(int argc, const char **argv)
+int
+main(int argc, const char **argv)
{
git_credential_t cred = {0};
@@ -160,10 +161,10 @@ int main(int argc, const char **argv)
if (strcmp(argv[1], "get") == 0) {
get_password(&cred);
}
- else if (!strcmp(argv[1], "store")) {
+ else if (strcmp(argv[1], "store") == 0) {
store_password(&cred);
}
- else if (!strcmp(argv[1], "erase")) {
+ else if (strcmp(argv[1], "erase") == 0) {
erase_password(&cred);
}
clear_credential(&cred);

0 comments on commit ae90f73

Please sign in to comment.