[Asterisk-cvs] zaptel sethdlc.c,1.1,1.2

markster at lists.digium.com markster at lists.digium.com
Wed Jul 28 10:54:58 CDT 2004


Update of /usr/cvsroot/zaptel
In directory localhost.localdomain:/tmp/cvs-serv18592

Modified Files:
	sethdlc.c 
Log Message:
Fix compiling of sethdlc on 2.6 just for fun


Index: sethdlc.c
===================================================================
RCS file: /usr/cvsroot/zaptel/sethdlc.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- sethdlc.c	8 Dec 2001 19:06:36 -0000	1.1
+++ sethdlc.c	28 Jul 2004 14:41:02 -0000	1.2
@@ -232,37 +232,37 @@
 		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 at 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 at 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);
 }
 




More information about the svn-commits mailing list