/*
- * $Id: html_quote.c,v 1.3 2001/01/12 00:37:12 wessels Exp $
+ * $Id: html_quote.c,v 1.4 2001/10/17 19:46:43 hno Exp $
*
* DEBUG:
* AUTHOR: Robert Collins
*/
static struct {
unsigned char code;
- char *quote;
+ const char *quote;
} htmlstandardentities[] =
{
buf = xcalloc(bufsize, 1);
}
for (src = string, dst = buf; *src; src++) {
- char *escape = NULL;
+ const char *escape = NULL;
const unsigned char ch = *src;
/* Walk thru the list of HTML Entities that must be quoted to
/*
- * $Id: rfc1123.c,v 1.28 2001/01/12 00:37:13 wessels Exp $
+ * $Id: rfc1123.c,v 1.29 2001/10/17 19:46:43 hno Exp $
*
* DEBUG:
* AUTHOR: Harvest Derived
static int make_month(const char *s);
static int make_num(const char *s);
-static char *month_names[12] =
+static const char *month_names[12] =
{
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
/*
- * $Id: util.c,v 1.81 2001/10/17 12:41:48 hno Exp $
+ * $Id: util.c,v 1.82 2001/10/17 19:46:43 hno Exp $
*
* DEBUG:
* AUTHOR: Harvest Derived
int
xpercentInt(double part, double whole)
{
+ double result;
#if HAVE_RINT
- return (int) rint(xpercent(part, whole));
+ result = rint(xpercent(part, whole));
#else
/* SCO 3.2v4.2 doesn't have rint() -- mauri@mbp.ee */
- return (int) floor(xpercent(part, whole) + 0.5);
+ result = floor(xpercent(part, whole) + 0.5);
#endif
+ return (int) result;
}
/* somewhat safer division */
/* A default failure notifier when the main program hasn't installed any */
void
-default_failure_notify(const char *msg)
+default_failure_notify(const char *message)
{
- write(2, msg, strlen(msg));
+ write(2, message, strlen(message));
write(2, "\n", 1);
abort();
}