File: fix-several-implicit-declarations.patch

package info (click to toggle)
m4api 0.3~0.9646fd-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 184 kB
  • sloc: ansic: 967; makefile: 5; sh: 4
file content (27 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Fix several implicit declarations
Author: Nick Rosbrook <enr0n@ubuntu.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2060847
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066290
Last-Update: 2024-04-10
--- a/m4api.c
+++ b/m4api.c
@@ -391,6 +391,8 @@
   return 0;
 }
 
+int m4SetBinary(m4Handle *dev, struct m4ConfigField *field, char const *val);
+
 int m4SetFloat(m4Handle *dev, enum m4FieldID fid, float val) {
   char binary[2];
   int ival;
--- a/m4ctl.c
+++ b/m4ctl.c
@@ -17,6 +17,8 @@
  */
 
 #include <stdio.h>
+#include <string.h>
+#include <time.h>
 #include <usb.h>
 
 #include "m4api.h"