$NetBSD: patch-at,v 1.4 2025/10/12 00:57:39 mrg Exp $ - Avoid modern getline(). - Add types for GCC 14. --- metamail/uue.c.orig 1993-07-28 11:31:02.000000000 -0700 +++ metamail/uue.c 2025-10-11 16:50:50.935538991 -0700 @@ -1,13 +1,18 @@ #include +#include + +#include "metamail.h" /* * hack to metamail to decode uuencoded bodyparts * Written by Keith Moore, February 1992 */ +void uueget (ptr, outfp, n) char *ptr; FILE *outfp; +int n; { unsigned char c1, c2, c3; unsigned char p0, p1, p2, p3; @@ -30,7 +35,8 @@ FILE *outfp; } -getline (buf, size, fp) +int +uue_getline (buf, size, fp) char *buf; int size; FILE *fp; @@ -62,7 +68,7 @@ FILE *fp; } -fromuue (infp, outfp, boundaries, ctptr) +void fromuue (infp, outfp, boundaries, ctptr) FILE *infp, *outfp; char **boundaries; int *ctptr; @@ -70,7 +76,7 @@ int *ctptr; char buf[63]; while (1) { - if (getline (buf, sizeof buf, infp) < 0) { + if (uue_getline (buf, sizeof buf, infp) < 0) { fprintf (stderr, "Premature EOF!\n"); return; } @@ -82,7 +88,7 @@ int *ctptr; } } while (1) { - if (getline (buf, sizeof buf, infp) < 0) { + if (uue_getline (buf, sizeof buf, infp) < 0) { fprintf (stderr, "Premature EOF!\n"); return; }