squid: update to 6.13
[openadk.git] / package / cfgfs / src / cpr_list.c
blobaafdf590cb6ceb38ce66f280585c0ed930e94b2d
1 /* $MirOS: contrib/hosted/fwcf/cpr_list.c,v 1.4 2006/09/24 03:21:29 tg Exp $ */
3 /*-
4 * Copyright (c) 2006
5 * Thorsten Glaser <tg@mirbsd.de>
7 * Licensee is hereby permitted to deal in this work without restric-
8 * tion, including unlimited rights to use, publicly perform, modify,
9 * merge, distribute, sell, give away or sublicence, provided all co-
10 * pyright notices above, these terms and the disclaimer are retained
11 * in all redistributions or reproduced in accompanying documentation
12 * or other materials provided with binary redistributions.
14 * Licensor offers the work "AS IS" and WITHOUT WARRANTY of any kind,
15 * express, or implied, to the maximum extent permitted by applicable
16 * law, without malicious intent or gross negligence; in no event may
17 * licensor, an author or contributor be held liable for any indirect
18 * or other damage, or direct damage except proven a consequence of a
19 * direct error of said person and intended use of this work, loss or
20 * other issues arising in any way out of its use, even if advised of
21 * the possibility of such damage or existence of a defect.
24 #include <sys/param.h>
25 #include <stdio.h>
27 #include "defs.h"
28 #include "compress.h"
30 __RCSID("$MirOS: contrib/hosted/fwcf/cpr_list.c,v 1.4 2006/09/24 03:21:29 tg Exp $");
32 int
33 compress_list(void)
35 fwcf_compressor *cl;
36 int i;
38 if ((cl = compress_enumerate()) == NULL)
39 return (1);
41 for (i = 0; i < 256; ++i)
42 if (cl[i].name != NULL)
43 printf("%02Xh = %s%s\n", cl[i].code,
44 (i < 0xE0 ? "" : "PRIVATE "), cl[i].name);
45 return (0);