freebsd-ports/misc/gman/files/patch-taskfunc.c
Cy Schubert 791fda4057 Update from patch level 2 to patch level 5.
Assume maintainership of this port.
2011-08-26 20:18:25 +00:00

20 lines
965 B
C

--- taskfunc.c.bak 2007-08-12 18:49:55.000000000 +0200
+++ taskfunc.c 2007-08-12 18:51:16.000000000 +0200
@@ -38,13 +38,13 @@
{
ManItem ** buffer;
int i,j,count;
- int display_section_ID;
+ intptr_t display_section_ID;
pthread_mutex_lock(&context_lock);
- switch ((long)context->get_value("display_section_policy")) {
+ switch ((intptr_t)context->get_value("display_section_policy")) {
case 0: display_section_ID = ~0;break;
- case 1: display_section_ID = ~(long)(context->get_value("display_section"));break;
- case 2: display_section_ID = (long)context->get_value("display_section"); break;
+ case 1: display_section_ID = ~(intptr_t)(context->get_value("display_section"));break;
+ case 2: display_section_ID = (intptr_t)context->get_value("display_section"); break;
default: fprintf(stderr,"warning: init_man_data: \"display_section_policy\" "
"have invalid value %d",context->get_value("display_section_policy"));
display_section_ID = ~0;