File: 1001_printf_warning.patch

package info (click to toggle)
unicap 0.9.12%2Brepack20150328.0.git2c600ae-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,832 kB
  • ctags: 3,022
  • sloc: ansic: 24,808; sh: 553; makefile: 275
file content (23 lines) | stat: -rw-r--r-- 658 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (C) 2008 by Miriam Ruiz <little_miry@yahoo.es>
# Distributed under the same license as the software. See debian/copyright

--- unicap.orig/src/unicap_helpers.c
+++ unicap/src/unicap_helpers.c
@@ -283,7 +283,7 @@
 		 "range: min: %g\n"\
 		 "       max: %g\n"\
 		 "stepping: %g\n"\
-		 "property data size: %d\n",
+		 "property data size: %ld\n",
 		 property->identifier,
 		 property->category,
 		 property->unit,
@@ -291,7 +291,7 @@
 		 property->range.min,
 		 property->range.max,
 		 property->stepping,
-		 property->property_data_size );
+		 (long int)property->property_data_size );
 	
 	strncpy( buffer, tmp_buffer, *buffer_size );