Index: include/config.h.in
===================================================================
RCS file: /cvsroot/nagios/ndoutils/include/config.h.in,v
retrieving revision 1.3
diff -r1.3 config.h.in
11a12
> #define _GNU_SOURCE 1
Index: src/dbhandlers.c
===================================================================
RCS file: /cvsroot/nagios/ndoutils/src/dbhandlers.c,v
retrieving revision 1.16
diff -r1.16 dbhandlers.c
3438c3438
< 		if(asprintf(&buf,"instance_id='%d', host_id='%lu', parent_host_object_id='%lu'"
---
> 		if(asprintf(&buf,"instance_id='%lu', host_id='%lu', parent_host_object_id='%lu'"
3467c3467
< 		if(asprintf(&buf,"instance_id='%d', host_id='%lu', contactgroup_object_id='%lu'"
---
> 		if(asprintf(&buf,"instance_id='%lu', host_id='%lu', contactgroup_object_id='%lu'"
3496c3496
< 		if(asprintf(&buf,"instance_id='%d', host_id='%lu', contact_object_id='%lu'"
---
> 		if(asprintf(&buf,"instance_id='%lu', host_id='%lu', contact_object_id='%lu'"
3595c3595
< 		if(asprintf(&buf,"instance_id='%d', hostgroup_id='%lu', host_object_id='%lu'"
---
> 		if(asprintf(&buf,"instance_id='%lu', hostgroup_id='%lu', host_object_id='%lu'"
3840c3840
< 		if(asprintf(&buf,"instance_id='%d', service_id='%lu', contactgroup_object_id='%lu'"
---
> 		if(asprintf(&buf,"instance_id='%lu', service_id='%lu', contactgroup_object_id='%lu'"
3869c3869
< 		if(asprintf(&buf,"instance_id='%d', service_id='%lu', contact_object_id='%lu'"
---
> 		if(asprintf(&buf,"instance_id='%lu', service_id='%lu', contact_object_id='%lu'"
3974c3974
< 		if(asprintf(&buf,"instance_id='%d', servicegroup_id='%lu', service_object_id='%lu'"
---
> 		if(asprintf(&buf,"instance_id='%lu', servicegroup_id='%lu', service_object_id='%lu'"
4223c4223
< 		if(asprintf(&buf,"instance_id='%d', hostescalation_id='%lu', contactgroup_object_id='%lu'"
---
> 		if(asprintf(&buf,"instance_id='%lu', hostescalation_id='%lu', contactgroup_object_id='%lu'"
4252c4252
< 		if(asprintf(&buf,"instance_id='%d', hostescalation_id='%lu', contact_object_id='%lu'"
---
> 		if(asprintf(&buf,"instance_id='%lu', hostescalation_id='%lu', contact_object_id='%lu'"
4367c4367
< 		if(asprintf(&buf,"instance_id='%d', serviceescalation_id='%lu', contactgroup_object_id='%lu'"
---
> 		if(asprintf(&buf,"instance_id='%lu', serviceescalation_id='%lu', contactgroup_object_id='%lu'"
4396c4396
< 		if(asprintf(&buf,"instance_id='%d', serviceescalation_id='%lu', contact_object_id='%lu'"
---
> 		if(asprintf(&buf,"instance_id='%lu', serviceescalation_id='%lu', contact_object_id='%lu'"
4561c4561
< 		if(asprintf(&buf,"instance_id='%d', timeperiod_id='%lu', day='%d', start_sec='%lu', end_sec='%lu'"
---
> 		if(asprintf(&buf,"instance_id='%lu', timeperiod_id='%lu', day='%d', start_sec='%lu', end_sec='%lu'"
4726c4726
< 		if(asprintf(&buf,"instance_id='%d', contact_id='%lu', address_number='%d', address='%s'"
---
> 		if(asprintf(&buf,"instance_id='%lu', contact_id='%lu', address_number='%d', address='%s'"
4766c4766
< 		if(asprintf(&buf,"instance_id='%d', contact_id='%lu', notification_type='%d', command_object_id='%lu', command_args='%s'"
---
> 		if(asprintf(&buf,"instance_id='%lu', contact_id='%lu', notification_type='%d', command_object_id='%lu', command_args='%s'"
4807c4807
< 		if(asprintf(&buf,"instance_id='%d', contact_id='%lu', notification_type='%d', command_object_id='%lu', command_args='%s'"
---
> 		if(asprintf(&buf,"instance_id='%lu', contact_id='%lu', notification_type='%d', command_object_id='%lu', command_args='%s'"
4910c4910
< 		if(asprintf(&buf,"instance_id='%d', contactgroup_id='%lu', contact_object_id='%lu'"
---
> 		if(asprintf(&buf,"instance_id='%lu', contactgroup_id='%lu', contact_object_id='%lu'"
4965c4965
< 			if(asprintf(&buf,"instance_id='%d', object_id='%lu', config_type='%d', has_been_modified='%d', varname='%s', varvalue='%s'"
---
> 			if(asprintf(&buf,"instance_id='%lu', object_id='%d', config_type='%d', has_been_modified='%d', varname='%s', varvalue='%s'"
4976c4976
< 			if(asprintf(&buf,"instance_id='%d', object_id='%lu',status_update_time=%s, has_been_modified='%d', varname='%s', varvalue='%s'"
---
> 			if(asprintf(&buf,"instance_id='%lu', object_id='%d',status_update_time=%s, has_been_modified='%d', varname='%s', varvalue='%s'"
