Changeset 7869e48 for zephyr.c


Ignore:
Timestamp:
Jan 12, 2013, 1:43:13 PM (11 years ago)
Author:
Jason Gross <jgross@mit.edu>
Children:
e3a0d71, 4485285
Parents:
4626016
git-author:
Jason Gross <jgross@mit.edu> (01/12/13 13:13:18)
git-committer:
Jason Gross <jgross@mit.edu> (01/12/13 13:43:13)
Message:
Remove trailing whitespace

This commit was made with the command sequence

    for i in $(git ls-files | tr '\n' ' ');
    do
      echo $i; sed -i s'/\s\+$//g' "$(readlink -f $i)";
    done
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    r9b3167b r7869e48  
    320320      subs = g_renew(ZSubscription_t, subs, subSize);
    321321    }
    322    
     322
    323323    /* add it to the list of subs */
    324324    if ((tmp = strtok(start, ",\n\r")) == NULL)
     
    649649  else if (!strcasecmp(n->z_default_format, "New transaction [$1] entered in $2\nFrom: $3 ($5)\nSubject: $4") ||
    650650           !strcasecmp(n->z_default_format, "New transaction [$1] entered in $2\nFrom: $3\nSubject: $4")) {
    651    
     651
    652652    msg = g_strdup_printf("New transaction [%s] entered in %s\nFrom: %s (%s)\nSubject: %s",
    653653                          fields[1], fields[2], fields[3], fields[5], fields[4]);
     
    707707  ZNotice_t notice;
    708708  char *zsender = NULL;
    709    
     709
    710710  memset(&notice, 0, sizeof(notice));
    711711
     
    713713
    714714  if (!zsig) zsig="";
    715  
     715
    716716  notice.z_kind=ACKED;
    717717  notice.z_port=0;
     
    738738  /* ret=ZSendNotice(&notice, ZAUTH); */
    739739  ret=ZSrvSendNotice(&notice, ZAUTH, send_zephyr_helper);
    740  
     740
    741741  /* free then check the return */
    742742  g_free(notice.z_message);
     
    771771{
    772772  char *tmp;
    773  
     773
    774774  /* if it's an HMACK ignore it */
    775775  if (retnotice->z_kind == HMACK) return;
     
    880880}
    881881#endif
    882  
     882
    883883void owl_zephyr_zaway(const owl_message *m)
    884884{
     
    886886  char *tmpbuff, *myuser, *to;
    887887  owl_zwrite *z;
    888  
     888
    889889  /* bail if it doesn't look like a message we should reply to.  Some
    890890   * of this defined by the way zaway(1) works
     
    10321032  char *line, *subsfile;
    10331033  int linesdeleted;
    1034  
     1034
    10351035  line=owl_zephyr_makesubline(class, inst, recip);
    10361036  line[strlen(line)-1]='\0';
    10371037
    10381038  subsfile = owl_zephyr_dotfile(".zephyr.subs", filename);
    1039  
     1039
    10401040  linesdeleted = owl_util_file_deleteline(subsfile, line, 1);
    10411041  if (linesdeleted > 0) {
     
    10821082  char *filename;
    10831083  FILE *file;
    1084  
     1084
    10851085  filename = owl_zephyr_dotfile(".anyone", NULL);
    10861086  file = fopen(filename, "a");
     
    11181118  } else {
    11191119    return ("UNKNOWN");
    1120   }           
     1120  }
    11211121}
    11221122#else
     
    12541254  return 0;
    12551255}
    1256  
     1256
    12571257/* Strip a local realm fron the zephyr user name.
    12581258 * The caller must free the return
Note: See TracChangeset for help on using the changeset viewer.