changeset 17:76d91e545ea8 default tip

addrsbr and dtimep fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 24 Nov 2014 14:49:25 +0900
parents 07f8972434be
children
files sbr/addrsbr.c zotnet/tws/dtimep.c zotnet/tws/dtimep.c-lexed zotnet/tws/dtimep.lex
diffstat 4 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/sbr/addrsbr.c	Wed Nov 12 02:46:27 2014 +0900
+++ b/sbr/addrsbr.c	Mon Nov 24 14:49:25 2014 +0900
@@ -583,11 +583,11 @@
 #ifndef	BANG
 	if (mp -> m_type != UUCPHOST) {
 	   if (mp->m_host) 
-	    (void) sprintf (addr, "%s%s@%s" ,
-		 mp -> m_path , mp -> m_mbox, mp -> m_host);
+                (void) sprintf (addr, "%s%s@%s" ,
+		  mp -> m_path ? mp -> m_path : "" , mp -> m_mbox, mp -> m_host);
            else
 	    (void) sprintf (addr, "%s%s",
-		"", mp -> m_mbox);
+		  mp -> m_path ? mp -> m_path : "" , mp -> m_mbox);
 	} else
 #endif /* not BANG */
 	    (void) sprintf (addr, "%s!%s", mp -> m_host, mp -> m_mbox);
--- a/zotnet/tws/dtimep.c	Wed Nov 12 02:46:27 2014 +0900
+++ b/zotnet/tws/dtimep.c	Mon Nov 24 14:49:25 2014 +0900
@@ -115,8 +115,6 @@
 #endif	/* BSD42 */
 #endif
 
-extern int lex_string( char **, int) ;
-
 static	void zonehack (tw)
 register struct tws *tw;
 {
--- a/zotnet/tws/dtimep.c-lexed	Wed Nov 12 02:46:27 2014 +0900
+++ b/zotnet/tws/dtimep.c-lexed	Mon Nov 24 14:49:25 2014 +0900
@@ -115,7 +115,7 @@
 #endif	/* BSD42 */
 #endif
 
-static	zonehack (tw)
+static	void zonehack (tw)
 register struct tws *tw;
 {
     register struct tm *tm;
--- a/zotnet/tws/dtimep.lex	Wed Nov 12 02:46:27 2014 +0900
+++ b/zotnet/tws/dtimep.lex	Mon Nov 24 14:49:25 2014 +0900
@@ -142,7 +142,7 @@
 #endif	/* BSD42 */
 #endif
 
-static	zonehack (tw)
+static	void zonehack (tw)
 register struct tws *tw;
 {
     register struct tm *tm;