12345678910111213141516171819202122232425262728293031 |
- $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" ,
|