/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/mandos-client.c

  • Committer: Teddy Hogeborn
  • Date: 2013-10-13 15:43:42 UTC
  • Revision ID: teddy@recompile.se-20131013154342-2ztabynqog6xuk0t
* initramfs-unpack: Bug fix: Made executable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
  
188
188
  TEMP_FAILURE_RETRY(fprintf(stream, "Mandos plugin %s: ",
189
189
                             program_invocation_short_name));
190
 
  return TEMP_FAILURE_RETRY(vfprintf(stream, format, ap));
 
190
  return (int)TEMP_FAILURE_RETRY(vfprintf(stream, format, ap));
191
191
}
192
192
 
193
193
/*
659
659
    return -1;
660
660
  }
661
661
  
 
662
  /* If the interface is specified and we have a list of interfaces */
662
663
  if(if_index != AVAHI_IF_UNSPEC and mc->interfaces != NULL){
663
664
    /* Check if the interface is one of the interfaces we are using */
664
665
    bool match = false;
673
674
      }
674
675
    }
675
676
    if(not match){
 
677
      /* This interface does not match any in the list, so we don't
 
678
         connect to the server */
676
679
      if(debug){
677
680
        char interface[IF_NAMESIZE];
678
681
        if(if_indextoname((unsigned int)if_index, interface) == NULL){
2181
2184
    }
2182
2185
  }
2183
2186
  
2184
 
  /* Bring up interfaces which are down */
 
2187
  /* Bring up interfaces which are down, and remove any "none"s */
2185
2188
  {
2186
2189
    char *interface = NULL;
2187
2190
    while((interface = argz_next(mc.interfaces, mc.interfaces_size,
2328
2331
        fprintf_plus(stderr, "Retrying in %d seconds\n",
2329
2332
                     (int)retry_interval);
2330
2333
      }
2331
 
      sleep((int)retry_interval);
 
2334
      sleep((unsigned int)retry_interval);
2332
2335
    }
2333
2336
    
2334
2337
    if (not quit_now){