NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/52925: [timed] mark slave function as noreturn



>Number:         52925
>Category:       bin
>Synopsis:       [timed] mark slave function as noreturn
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 13 20:50:00 +0000 2018
>Originator:     Eitan Adler
>Release:        HEAD
>Organization:
>Environment:
>Description:

>How-To-Repeat:

>Fix:
Index: slave.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/timed/timed/slave.c,v
retrieving revision 1.18
diff -u -r1.18 slave.c
--- slave.c	26 Jan 2007 16:12:41 -0000	1.18
+++ slave.c	13 Jan 2018 20:46:07 -0000
@@ -56,7 +56,7 @@
 static void setmaster(struct tsp *);
 static void answerdelay(void);
 
-int
+void
 slave(void)
 {
 	int tries;
Index: timed-extern.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/timed/timed/timed-extern.h,v
retrieving revision 1.10
diff -u -r1.10 timed-extern.h
--- timed-extern.h	31 Aug 2011 13:32:41 -0000	1.10
+++ timed-extern.h	13 Jan 2018 20:46:07 -0000
@@ -74,7 +74,7 @@
 void	 prthp(clock_t);
 void	 rmnetmachs(struct netinfo *);
 void	 setstatus(void);
-int	 slave(void);
+void	 slave(void) __attribute__((__noreturn__));
 void	 slaveack(void);
 void	 spreadtime(void);
 void	 suppress(struct sockaddr_in *, char *, struct netinfo *);



Home | Main Index | Thread Index | Old Index