/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#ifdef AFS_AIX32_ENV
/*
- * The following signal action for AIX is necessary so that in case of a
- * crash (i.e. core is generated) we can include the user's data section
+ * The following signal action for AIX is necessary so that in case of a
+ * crash (i.e. core is generated) we can include the user's data section
* in the core dump. Unfortunately, by default, only a partial core is
* generated which, in many cases, isn't too useful.
*/
if (syms == NULL)
sys_error("syms is NULL");
- fp = fopen(syms, "r");
+ fp = fopen(syms, "r");
if (fp == NULL)
sys_error(syms);
if (debug)
printf("nsyms = %d\n", nsyms);
- x_symtab = (struct syment *)malloc(nsyms * SYMESZ);
+ x_symtab = malloc(nsyms * SYMESZ);
if (!x_symtab)
error("no memory for symbol table");
/*
* we will need no more than `nxsyms' symbols.
*/
- k_symtab = (sym_t *) malloc(nxsyms * sizeof(sym_t));
+ k_symtab = malloc(nxsyms * sizeof(sym_t));
if (!k_symtab)
error("no memory for EXPORT symbol table");
*/
len = strlen(xp->n_nptr) + 1;
while (len >= left) {
- export_strings = (char *)realloc(*strp, sz += SYMBUFSIZE);
+ export_strings = realloc(*strp, sz += SYMBUFSIZE);
if (!export_strings)
error("no memory for EXPORT string table");
*strp = export_strings;
if (debug)
dump_ksym(kp, *strp);
}
-\f
+
/*
* find_suffix - look for a string that arg string is suffix of
*
return 0;
}
-\f
+
/*
* xsym_compar - compare two XCOFF symbol table entries
*
return compar;
}
-\f
+
/*
* dump_xsym - print to XCOFF symbol
*/