/mandos/release

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

« back to all changes in this revision

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

  • Committer: Teddy Hogeborn
  • Date: 2016-12-12 18:25:02 UTC
  • mto: (237.7.594 trunk)
  • mto: This revision was merged to the branch mainline in revision 356.
  • Revision ID: teddy@recompile.se-20161212182502-72seb9hxiu65cgwa
Add spaces around all '=' signs in all C code.

* plugin-runner.c: Add white space around all '=' signs.
* plugins.d/mandos-client.c: - '' -
* plugins.d/plymouth.c: - '' -

Show diffs side-by-side

added added

removed removed

Lines of Context:
626
626
                     safer_gnutls_strerror(ret));
627
627
        dhparamsfilename = NULL;
628
628
      }
 
629
      free(params.data);
629
630
    } while(false);
630
631
  }
631
632
  if(dhparamsfilename == NULL){
1078
1079
    bool match = false;
1079
1080
    {
1080
1081
      char *interface = NULL;
1081
 
      while((interface=argz_next(mc->interfaces, mc->interfaces_size,
1082
 
                                 interface))){
 
1082
      while((interface = argz_next(mc->interfaces,
 
1083
                                   mc->interfaces_size,
 
1084
                                   interface))){
1083
1085
        if(if_nametoindex(interface) == (unsigned int)if_index){
1084
1086
          match = true;
1085
1087
          break;
2195
2197
  
2196
2198
  /* Sleep checking until interface is running.
2197
2199
     Check every 0.25s, up to total time of delay */
2198
 
  for(int i=0; i < delay * 4; i++){
 
2200
  for(int i = 0; i < delay * 4; i++){
2199
2201
    if(interface_is_running(interface)){
2200
2202
      break;
2201
2203
    }
3022
3024
      /* Take down the network interfaces which were brought up */
3023
3025
      {
3024
3026
        char *interface = NULL;
3025
 
        while((interface=argz_next(interfaces_to_take_down,
3026
 
                                   interfaces_to_take_down_size,
3027
 
                                   interface))){
 
3027
        while((interface = argz_next(interfaces_to_take_down,
 
3028
                                     interfaces_to_take_down_size,
 
3029
                                     interface))){
3028
3030
          ret = take_down_interface(interface);
3029
3031
          if(ret != 0){
3030
3032
            errno = ret;