Changeset 1646

Show
Ignore:
Timestamp:
07/07/08 23:45:10 (2 months ago)
Author:
till
Message:

nebula
- replace bzero with memset
- include netinet/in.h for BSD compatibility

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nebula/trunk/src/net.c

    r1558 r1646  
    2121#include <arpa/inet.h> 
    2222#include <errno.h> 
     23#include <netinet/in.h> 
    2324#include <stdio.h> 
    2425#include <string.h> 
     
    4546 
    4647        // bind port 
    47         bzero(&srv, sizeof(srv)); 
     48        memset(&srv, 0, sizeof(struct sockaddr_in)); 
    4849        srv.sin_family          = AF_INET; 
    4950        srv.sin_addr.s_addr     = htonl(INADDR_ANY); 
  • nebula/trunk/src/sha512.c

    r1560 r1646  
    304304                return(NULL); 
    305305        } 
    306         bzero(sha512sum,129); 
     306        memset(sha512sum, 0, 129); 
    307307        ptr = sha512sum; 
    308308        for(i = 0; i < 64; i++) {