diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:26:13 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:34:35 +0300 |
commit | 0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch) | |
tree | 71cb9bd9ed121156d3382066c0722c73189afe04 /stream/stream_netstream.h | |
parent | 6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff) | |
download | mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2 mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz |
Remove trailing whitespace from most files
Diffstat (limited to 'stream/stream_netstream.h')
-rw-r--r-- | stream/stream_netstream.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stream/stream_netstream.h b/stream/stream_netstream.h index 6ae46cabef..52e5cf211e 100644 --- a/stream/stream_netstream.h +++ b/stream/stream_netstream.h @@ -73,9 +73,9 @@ static int net_read(int fd, char* buf, int len) { static mp_net_stream_packet_t* read_packet(int fd) { uint16_t len; - mp_net_stream_packet_t* pack = + mp_net_stream_packet_t* pack = (mp_net_stream_packet_t*)malloc(sizeof(mp_net_stream_packet_t)); - + if(!net_read(fd,(char*)pack,sizeof(mp_net_stream_packet_t))) { free(pack); return NULL; @@ -124,12 +124,12 @@ static int net_write(int fd, char* buf, int len) { static int write_packet(int fd, uint8_t cmd,char* data,int len) { mp_net_stream_packet_t* pack = malloc(len + sizeof(mp_net_stream_packet_t)); - + if(len > 0 && data) memcpy(pack->data,data,len); pack->len = len + sizeof(mp_net_stream_packet_t); pack->cmd = cmd; - + // printf("Write packet %d %d (%p) %d\n",fd,cmd,data,len); pack->len = le2me_16(pack->len); if(net_write(fd,(char*)pack,pack->len)) { |