/[monit]/monit/p.y
ViewVC logotype

Diff of /monit/p.y

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by hauk, Thu Sep 5 14:04:46 2002 UTC revision 1.13 by hauk, Fri Sep 6 18:13:37 2002 UTC
# Line 37  Line 37 
37  #include <stdio.h>  #include <stdio.h>
38  #include <stdlib.h>  #include <stdlib.h>
39  #include <errno.h>  #include <errno.h>
40  #include <sys/socket.h>    
   
41  #ifdef HAVE_SYS_TYPES_H  #ifdef HAVE_SYS_TYPES_H
42  #include <sys/types.h>  #include <sys/types.h>
43  #endif  #endif
44      
45    #include <sys/socket.h>
46    
47  #ifdef HAVE_ASM_PARAM_H  #ifdef HAVE_ASM_PARAM_H
48  #include <asm/param.h>  #include <asm/param.h>
# Line 1058  static void check_hostname(char *hostnam Line 1059  static void check_hostname(char *hostnam
1059   */   */
1060  static char *append_hostname(char *addr) {  static char *append_hostname(char *addr) {
1061    
1062    char buf[MAXHOSTNAMELEN];    char buf[STRLEN];
1063    char * fulladdr;    char * fulladdr;
1064    
1065    if (gethostname(buf, MAXHOSTNAMELEN) != 0) {    if (gethostname(buf, STRLEN) != 0) {
1066       yyerror("Cannot find hostname for mailaddress");       yyerror("Cannot find hostname for mailaddress");
1067    }    }
1068    

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26