File: missing-prototypes.patch

package info (click to toggle)
dmitry 1.3a-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,020 kB
  • sloc: ansic: 1,306; sh: 858; makefile: 8
file content (24 lines) | stat: -rw-r--r-- 588 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
Description: fix building with -Werror=implicit-function-declaration
Author: Andreas Beckmann <anbe@debian.org>
Forwarded: https://github.com/jaygreig86/dmitry/pull/14
Last-Update: 2024-06-13
---
--- a/src/dmitry.c
+++ b/src/dmitry.c
@@ -9,6 +9,7 @@
 #include <ctype.h>
 #include <string.h>
 #include <signal.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
--- a/src/file.c
+++ b/src/file.c
@@ -1,4 +1,6 @@
 #include "includes/file.h"
+#include <string.h>
+#include <stdlib.h>
 int file_prep()
 {
 	outputfile[strlen(outputfile)] = '\0';