comparison cli-runopts.c @ 299:740e782679be ucc-axis-hack

Various changes to compile+kind of run on UCC's axis board. Note that fprintf(stdin -> printf( accounts for many of the changes
author Matt Johnston <matt@ucc.asn.au>
date Sat, 25 Mar 2006 12:57:09 +0000
parents 306499676384
children
comparison
equal deleted inserted replaced
266:e37b160c414c 299:740e782679be
41 static void addforward(char* str, struct TCPFwdList** fwdlist); 41 static void addforward(char* str, struct TCPFwdList** fwdlist);
42 #endif 42 #endif
43 43
44 static void printhelp() { 44 static void printhelp() {
45 45
46 fprintf(stderr, "Dropbear client v%s\n" 46 printf( "Dropbear client v%s\n"
47 "Usage: %s [options] [user@]host\n" 47 "Usage: %s [options] [user@]host\n"
48 "Options are:\n" 48 "Options are:\n"
49 "-p <remoteport>\n" 49 "-p <remoteport>\n"
50 "-l <username>\n" 50 "-l <username>\n"
51 "-t Allocate a pty\n" 51 "-t Allocate a pty\n"
201 #endif 201 #endif
202 case 'o': 202 case 'o':
203 case 'b': 203 case 'b':
204 next = &dummy; 204 next = &dummy;
205 default: 205 default:
206 fprintf(stderr, 206 printf(
207 "WARNING: Ignoring unknown argument '%s'\n", argv[i]); 207 "WARNING: Ignoring unknown argument '%s'\n", argv[i]);
208 break; 208 break;
209 } /* Switch */ 209 } /* Switch */
210 210
211 /* Now we handle args where they might be "-luser" (no spaces)*/ 211 /* Now we handle args where they might be "-luser" (no spaces)*/
280 280
281 key = new_sign_key(); 281 key = new_sign_key();
282 keytype = DROPBEAR_SIGNKEY_ANY; 282 keytype = DROPBEAR_SIGNKEY_ANY;
283 if ( readhostkey(filename, key, &keytype) != DROPBEAR_SUCCESS ) { 283 if ( readhostkey(filename, key, &keytype) != DROPBEAR_SUCCESS ) {
284 284
285 fprintf(stderr, "Failed loading keyfile '%s'\n", filename); 285 printf( "Failed loading keyfile '%s'\n", filename);
286 sign_key_free(key); 286 sign_key_free(key);
287 287
288 } else { 288 } else {
289 289
290 nextkey = (struct SignKeyList*)m_malloc(sizeof(struct SignKeyList)); 290 nextkey = (struct SignKeyList*)m_malloc(sizeof(struct SignKeyList));