openbsd-ports/japanese/Wnn/patches/patch-Wnn_jserver_error_c
espie 2625bb5332 fixes for clang: don't compile a clone of getopt.
while there, fix system includes, implicit ints, and void main.
2017-04-29 14:31:40 +00:00

31 lines
661 B
Plaintext

$OpenBSD: patch-Wnn_jserver_error_c,v 1.3 2017/04/29 14:31:40 espie Exp $
--- Wnn/jserver/error.c.orig
+++ Wnn/jserver/error.c
@@ -55,9 +55,10 @@
#include "commonhd.h"
#include "de_header.h"
#include <pwd.h>
+#include <stdlib.h>
+#include <time.h>
+#include <string.h>
-extern int errno;
-
static void my_error(), exit_hand();
void error1();
@@ -91,11 +92,11 @@ static void
my_error(x)
register char *x;
{
- long obakenoQ;
+ time_t obakenoQ;
/* struct passed *getpwiuid(); */
if(!noisy)return;
- obakenoQ = time((long *)0);
+ obakenoQ = time(NULL);
if(c_c){
#ifdef SYSVR2
fprintf(stderr , "client %s : %s %s errno =%d\n\n" ,