aboutsummaryrefslogtreecommitdiff
path: root/libssh/keyfiles.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-09-10 14:37:09 +0200
committerAndreas Schneider <mail@cynapses.org>2009-09-10 14:37:09 +0200
commit8051ab044c6293a38e28761357644d564e3874ad (patch)
tree3efdd5518534072123805ec2916e5aca4c87f9a9 /libssh/keyfiles.c
parent18bce136178029b52cbc7097d85cc0e50da887d8 (diff)
downloadlibssh-8051ab044c6293a38e28761357644d564e3874ad.tar.gz
libssh-8051ab044c6293a38e28761357644d564e3874ad.tar.xz
libssh-8051ab044c6293a38e28761357644d564e3874ad.zip
Reformat lowercase function.
Diffstat (limited to 'libssh/keyfiles.c')
-rw-r--r--libssh/keyfiles.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c
index f21cbe1f..ec81c828 100644
--- a/libssh/keyfiles.c
+++ b/libssh/keyfiles.c
@@ -1018,13 +1018,16 @@ static int alldigits(const char *s) {
* \internal
*/
static char *lowercase(const char* str) {
- char *p = 0;
- char *new = NULL;
+ char *new, *p;
- if(str == NULL) return NULL;
+ if (str == NULL) {
+ return NULL;
+ }
new = strdup(str);
- if(new == NULL) return NULL;
+ if (new == NULL) {
+ return NULL;
+ }
for (p = new; *p; p++) {
*p = tolower(*p);