httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@hyperreal.com>
Subject cvs commit: apache/src http_main.c
Date Thu, 15 Aug 1996 23:00:13 GMT
jim         96/08/15 16:00:11

  Modified:    src       http_main.c
  Log:
  No need for memcpy... just assign the struct
  
  Revision  Changes    Path
  1.59      +1 -2      apache/src/http_main.c
  
  Index: http_main.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/http_main.c,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -C3 -r1.58 -r1.59
  *** http_main.c	1996/08/14 05:18:45	1.58
  --- http_main.c	1996/08/15 23:00:09	1.59
  ***************
  *** 750,762 ****
    
    int update_child_status (int child_num, int status, request_rec *r)
    {
  -     short_score new_score_rec;
        int old_status;
    
        if (child_num < 0)
    	return -1;
        
  -     memcpy(&new_score_rec,&scoreboard_image->servers[child_num],sizeof new_score_rec);
        new_score_rec.pid = getpid();
        old_status = new_score_rec.status;
        new_score_rec.status = status;
  --- 750,761 ----
    
    int update_child_status (int child_num, int status, request_rec *r)
    {
        int old_status;
  +     short_score new_score_rec=scoreboard_image->servers[child_num];
    
        if (child_num < 0)
    	return -1;
        
        new_score_rec.pid = getpid();
        old_status = new_score_rec.status;
        new_score_rec.status = status;
  
  
  

Mime
View raw message