l2control.c (0986ab12e44caea472245845f9a89ced4f137d73) l2control.c (9c6d3b9f9367ef19bc7d1a95504375c9e83961d2)
1/*
2 * l2control.c
3 *
4 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 193 unchanged lines hidden (view full) ---

202 for (c = category; c->command != NULL; c++)
203 fprintf(stdout, "\t%s\n", c->command);
204} /* print_l2cap_command */
205
206/* Usage */
207static void
208usage(void)
209{
1/*
2 * l2control.c
3 *
4 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 193 unchanged lines hidden (view full) ---

202 for (c = category; c->command != NULL; c++)
203 fprintf(stdout, "\t%s\n", c->command);
204} /* print_l2cap_command */
205
206/* Usage */
207static void
208usage(void)
209{
210 fprintf(stdout, "Usage: l2control -a BD_ADDR [-n] [-h] cmd [p1] [..]]\n");
210 fprintf(stderr, "Usage: l2control [-hn] -a local cmd [params ..]\n");
211 fprintf(stderr, "Where:\n");
212 fprintf(stderr, " -a local Specify local device to connect to\n");
213 fprintf(stderr, " -h Display this message\n");
214 fprintf(stderr, " -n Show addresses as numbers\n");
215 fprintf(stderr, " cmd Supported command " \
216 "(see l2control help)\n");
217 fprintf(stderr, " params Optional command parameters\n");
211 exit(255);
212} /* usage */
213
218 exit(255);
219} /* usage */
220