version 1.29 | | version 1.30 |
---|
| | |
/* | | /* |
* static char *rcsid_porting_c = | | * static char *rcsid_porting_c = |
* "$Id: porting.c,v 1.29 2005/12/11 19:11:32 akirschbaum Exp $"; | | * "$Id: porting.c,v 1.30 2006/03/18 17:15:24 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* Tchize | | * Tchize |
*/ | | */ |
| | |
void save_long(char *buf, char *name, long n) { | | void save_long(char *buf, const char *name, long n) { |
char buf2[MAX_BUF]; | | char buf2[MAX_BUF]; |
strcpy(buf2,name); | | strcpy(buf2,name); |
strcat(buf2," "); | | strcat(buf2," "); |
| | |
* The first entry must be NULL - this is what is used for non | | * The first entry must be NULL - this is what is used for non |
* compressed files. | | * compressed files. |
*/ | | */ |
char *uncomp[NROF_COMPRESS_METHODS][3] = { | | const char *uncomp[NROF_COMPRESS_METHODS][3] = { |
{NULL, NULL, NULL}, | | {NULL, NULL, NULL}, |
{".Z", UNCOMPRESS, COMPRESS}, | | {".Z", UNCOMPRESS, COMPRESS}, |
{".gz", GUNZIP, GZIP}, | | {".gz", GUNZIP, GZIP}, |