Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc/team: Fix patch phase #1410

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions ports/misc/team/dragonfly/patch-team.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- team.c.intermediate 2019-11-08 19:05:41.000000000 +0000
--- team.c.orig 2023-10-04 06:12:35 UTC
+++ team.c
@@ -86,6 +86,10 @@ static char Notice[] =
@@ -91,6 +91,10 @@ static char Notice[] =
#include <sys/file.h>
#include <sys/stat.h>
#include <fcntl.h>
Expand All @@ -11,20 +11,16 @@
#ifdef HAVE_WAIT_H
#include <sys/wait.h>
#endif
@@ -176,16 +180,7 @@ local bool verbose = false;
@@ -186,12 +190,8 @@ local bool verbose = false;
local bool report = true;
local bool guyhaderror = false;

-extern int errno;
local time_t origin;
-
-extern time_t time of((time_t *));
-extern int atoi of((const char *));
-extern char *malloc of((unsigned));
-extern char *calloc of((address,unsigned));
-extern char *strchr of((const char *,int));
-
-extern int getopt of((int,char *[],const char *));
extern char *optarg;
extern int optind;

/*
The regular Unix read and write calls are not guaranteed to process
all the bytes requested. These procedures guarantee that if the