diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-07-28 14:41:02 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-07-28 14:41:02 +0000 |
commit | be1e5d408f5a953f3d8b6abed6017761c8a1beff (patch) | |
tree | b0bf87fee051a6f4aeb8d3db72eab444ab63a6b6 | |
parent | 31bdf40b8d1c450d57c76961961089f0a7dcd8b6 (diff) |
Fix compiling of sethdlc on 2.6 just for fun
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@445 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | sethdlc.c | 50 |
1 files changed, 25 insertions, 25 deletions
@@ -232,37 +232,37 @@ void show_port(const int sock) slots[i] = '\x0'; } - printf("%s:\tmode: %s%s%s -\tline: %s%s -\tclock: %s%s -%s\n", req.ifr_name, proto, dce, soft, line, loopback, clock, rate, slots); + printf("%s:\tmode: %s%s%s\n" +"\tline: %s%s\n" +"\tclock: %s%s\n" +"%s\n", req.ifr_name, proto, dce, soft, line, loopback, clock, rate, slots); } void usage(void) { - error("\nsethdlc version 1.01 for Linux 2.4 - -Copyright (C) 2000 Krzysztof Halasa <khc@pm.waw.pl> - -This program is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -Usage: sethdlc interface command [parameters] ... - -commands: -\trun <firmware_file_name> -\tclock (<rate> | int | ext | txint | txfromrx ) -\tmode [soft] [dce] (hdlc | cisco | ppp | [fr-]ansi | [fr-]ccitt | x25) -\tv35[-lb] | rs232[-lb] | x21[-lb] | t1[-lb] | e1[-lb] | lb | default -\tslotmap <map> -\t(create | delete) <dlci> - -Some commands and parameters may not be supported by some drivers or hardware -"); + error("\nsethdlc version 1.01 for Linux 2.4\n" +"\n" +"Copyright (C) 2000 Krzysztof Halasa <khc@pm.waw.pl>\n" +"\n" +"This program is free software; you can redistribute it and/or modify it\n" +"under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2 of the License, or\n" +"(at your option) any later version.\n" +"\n" +"Usage: sethdlc interface command [parameters] ...\n" +"\n" +"commands:\n" +"\trun <firmware_file_name>\n" +"\tclock (<rate> | int | ext | txint | txfromrx )\n" +"\tmode [soft] [dce] (hdlc | cisco | ppp | [fr-]ansi | [fr-]ccitt | x25)\n" +"\tv35[-lb] | rs232[-lb] | x21[-lb] | t1[-lb] | e1[-lb] | lb | default\n" +"\tslotmap <map>\n" +"\t(create | delete) <dlci>\n" +"\n" +"Some commands and parameters may not be supported by some drivers or hardware\n" +); exit(0); } |