[5666] in Athena Bugs

home help back first fref pref prev next nref lref last post

Fixes for hesiod lint library in 7.1D

daemon@ATHENA.MIT.EDU (epeisach@ATHENA.MIT.EDU)
Sun Aug 5 10:05:33 1990

From: epeisach@ATHENA.MIT.EDU
Date: Sun, 5 Aug 90 10:05:15 -0400
To: bugs@ATHENA.MIT.EDU
Cc: bug-hesiod@ATHENA.MIT.EDU


1) Don't compile library with -p
2) Define an malloc to retrun char *
3) #ifdef lint, define _res

RCS file: RCS/Imakefile,v
retrieving revision 1.1
diff -c -r1.1 Imakefile
*** /tmp/,RCSt1004450	Sun Aug  5 10:04:27 1990
--- Imakefile	Sun Aug  5 09:51:33 1990
***************
*** 7,18 ****
  DEFINES= -DHESIOD
  INCPATH=
  CFLAGS = -O ${INCPATH} ${DEFINES}
! #if defined(ultrix) && defined(mips) 
! # The -p on the decmips causes memory faults.
! LINTFLAGS=-uhvb
! #else
! LINTFLAGS= -uhvpb
! #endif
  
  SRCS = hesiod.c hespwnam.c hesmailhost.c hesservbyname.c resolve.c cistrcmp.c 
  OBJS = hesiod.o hespwnam.o hesmailhost.o hesservbyname.o resolve.o cistrcmp.o 
--- 7,13 ----
  DEFINES= -DHESIOD
  INCPATH=
  CFLAGS = -O ${INCPATH} ${DEFINES}
! LINTFLAGS= -uhvb
  
  SRCS = hesiod.c hespwnam.c hesmailhost.c hesservbyname.c resolve.c cistrcmp.c 
  OBJS = hesiod.o hespwnam.o hesmailhost.o hesservbyname.o resolve.o cistrcmp.o 
===================================================================
RCS file: RCS/hesiod.c,v
retrieving revision 1.1
diff -c -r1.1 hesiod.c
*** /tmp/,RCSt1004450	Sun Aug  5 10:04:29 1990
--- hesiod.c	Sun Aug  5 09:54:07 1990
***************
*** 88,94 ****
  	register char *key, *cp, **cpp;
  	int len;
  	char buf[MAXDNAME+7];
! 	char *calloc(), *getenv();
  
  	Hes_Errno = HES_ER_UNINIT;
  	Hes_LHS = NULL; Hes_RHS = NULL;
--- 88,94 ----
  	register char *key, *cp, **cpp;
  	int len;
  	char buf[MAXDNAME+7];
! 	char *calloc(), *getenv(), *malloc();
  
  	Hes_Errno = HES_ER_UNINIT;
  	Hes_LHS = NULL; Hes_RHS = NULL;
===================================================================
RCS file: RCS/resolve.c,v
retrieving revision 1.1
diff -c -r1.1 resolve.c
*** /tmp/,RCSt1004450	Sun Aug  5 10:04:30 1990
--- resolve.c	Sun Aug  5 10:00:59 1990
***************
*** 22,27 ****
--- 22,30 ----
  #define DEF_RETRY 3
  
  extern int errno;
+ #ifdef lint
+ struct state _res;
+ #endif
  
  static caddr_t
  rr_scan(cp, rr)

home help back first fref pref prev next nref lref last post