static const char *compresshook_format_str (char *dest, ssize_t destlen,
char op, const char *src,
const char *fmt,
- const char *ifstring __attribute__ ((unused)),
- const char *elsestring __attribute__ ((unused)),
- unsigned long data,
+ const char *ifstr __attribute__ ((unused)),
+ const char *elstr __attribute__ ((unused)),
+ anytype data,
format_flag flags __attribute__ ((unused)))
{
char tmp[STRING];
- CONTEXT *ctx = (CONTEXT *) data;
+ CONTEXT *ctx = data.ptr;
switch (op) {
case 'f':
char expanded[_POSIX_PATH_MAX];
m_strformat(expanded, sizeof (expanded), cmd, compresshook_format_str,
- (unsigned long)ctx, 0);
+ (void *)ctx, 0);
return m_strdup(expanded);
}