@@ -117,10 +117,10 @@ static char* keyring_object(struct credential *c)
117
117
return object ;
118
118
119
119
object = (char * ) malloc (strlen (c -> host )+ strlen (c -> path )+ 8 );
120
- if (!object )
120
+ if (!object )
121
121
die_errno (errno );
122
122
123
- if (c -> port )
123
+ if (c -> port )
124
124
sprintf (object ,"%s:%hd/%s" ,c -> host ,c -> port ,c -> path );
125
125
else
126
126
sprintf (object ,"%s/%s" ,c -> host ,c -> path );
@@ -314,14 +314,14 @@ int credential_read(struct credential *c)
314
314
{
315
315
line_len = strlen (buf );
316
316
317
- if (buf [line_len - 1 ]== '\n' )
317
+ if (buf [line_len - 1 ]== '\n' )
318
318
buf [-- line_len ]= '\0' ;
319
319
320
- if (!line_len )
320
+ if (!line_len )
321
321
break ;
322
322
323
323
value = strchr (buf ,'=' );
324
- if (!value ) {
324
+ if (!value ) {
325
325
warning ("invalid credential line: %s" , key );
326
326
return -1 ;
327
327
}
@@ -379,9 +379,9 @@ static void usage(const char *name)
379
379
380
380
basename = (basename ) ? basename + 1 : name ;
381
381
fprintf (stderr , "usage: %s <" , basename );
382
- while (try_op -> name ) {
382
+ while (try_op -> name ) {
383
383
fprintf (stderr ,"%s" ,(try_op ++ )-> name );
384
- if (try_op -> name )
384
+ if (try_op -> name )
385
385
fprintf (stderr ,"%s" ,"|" );
386
386
}
387
387
fprintf (stderr ,"%s" ,">\n" );
@@ -400,15 +400,15 @@ int main(int argc, char *argv[])
400
400
}
401
401
402
402
/* lookup operation callback */
403
- while (try_op -> name && strcmp (argv [1 ], try_op -> name ))
403
+ while (try_op -> name && strcmp (argv [1 ], try_op -> name ))
404
404
try_op ++ ;
405
405
406
406
/* unsupported operation given -- ignore silently */
407
- if (!try_op -> name || !try_op -> op )
407
+ if (!try_op -> name || !try_op -> op )
408
408
goto out ;
409
409
410
410
ret = credential_read (& cred );
411
- if (ret )
411
+ if (ret )
412
412
goto out ;
413
413
414
414
/* perform credential operation */
0 commit comments