From be1e5d408f5a953f3d8b6abed6017761c8a1beff Mon Sep 17 00:00:00 2001 From: markster Date: Wed, 28 Jul 2004 14:41:02 +0000 Subject: 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 --- sethdlc.c | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'sethdlc.c') diff --git a/sethdlc.c b/sethdlc.c index d2bef58..3514b2e 100755 --- a/sethdlc.c +++ b/sethdlc.c @@ -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 - -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 -\tclock ( | 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 -\t(create | delete) - -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 \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 \n" +"\tclock ( | 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 \n" +"\t(create | delete) \n" +"\n" +"Some commands and parameters may not be supported by some drivers or hardware\n" +); exit(0); } -- cgit v1.2.3