Changeset 3375 for trunk/module-constcw.c
- Timestamp:
- 10/04/10 18:06:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-constcw.c
r3373 r3375 56 56 //* client/server common functions 57 57 //************************************************************************************************************************ 58 static int constcw_recv( uchar *buf, int l)58 static int constcw_recv(struct s_client *client, uchar *buf, int l) 59 59 { 60 60 int ret; 61 61 62 if (!client [cs_idx].udp_fd) return(-9);63 ret = read(client [cs_idx].udp_fd, buf, l);62 if (!client->udp_fd) return(-9); 63 ret = read(client->udp_fd, buf, l); 64 64 if (ret < 1) return(-1); 65 client [cs_idx].last = time(NULL);65 client->last = time(NULL); 66 66 return(ret); 67 67 }
Note:
See TracChangeset
for help on using the changeset viewer.