Diff for /src/usr.sbin/timed/timed/slave.c between versions 1.3 and 1.4

version 1.3, 2003/11/03 19:31:43 version 1.4, 2004/03/13 21:08:38
Line 60  extern void logwtmp(char *, char *, char Line 60  extern void logwtmp(char *, char *, char
 #endif /* sgi */  #endif /* sgi */
   
 int  int
slave()slave(void)
 {  {
         int tries;          int tries;
         long electiontime, refusetime, looktime, looptime, adjtime;          long electiontime, refusetime, looktime, looptime, adjtime;
Line 629  loop: Line 629  loop:
  * tell the world who our master is   * tell the world who our master is
  */   */
 static void  static void
setmaster(msg)setmaster(struct tsp *msg)
        struct tsp *msg; 
 {  {
   
         if (slavenet          if (slavenet
             && (slavenet != old_slavenet              && (slavenet != old_slavenet
                 || strcmp(msg->tsp_name, master_name)                  || strcmp(msg->tsp_name, master_name)
Line 659  setmaster(msg) Line 659  setmaster(msg)
  * handle date change request on a slave   * handle date change request on a slave
  */   */
 static void  static void
schgdate(msg, newdate)schgdate(struct tsp *msg, char *newdate)
        struct tsp *msg; 
        char *newdate; 
 {  {
         struct tsp to;          struct tsp to;
         u_short seq;          u_short seq;
Line 699  schgdate(msg, newdate) Line 697  schgdate(msg, newdate)
  * contention and likely collisions.   * contention and likely collisions.
  */   */
 static void  static void
answerdelay()answerdelay(void)
 {  {
   
 #ifdef sgi  #ifdef sgi
         sginap(delay1);          sginap(delay1);
 #else  #else

Removed from v.1.3  
changed lines
  Added in v.1.4