projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compiler warnings.
[tinc]
/
src
/
darwin
/
device.c
diff --git
a/src/darwin/device.c
b/src/darwin/device.c
index
d30f0b6
..
99741f6
100644
(file)
--- a/
src/darwin/device.c
+++ b/
src/darwin/device.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: device.c,v 1.1.2.
3 2002/09/09 21:25:19
guus Exp $
+ $Id: device.c,v 1.1.2.
4 2002/09/09 22:33:23
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-92,7
+92,7
@@
void close_device(void)
read, encrypt and send data that is
available through the ethertap device
*/
read, encrypt and send data that is
available through the ethertap device
*/
-int read_packet(vpn_packet_t *
packet)
+int read_packet(vpn_packet_t *packet)
{
int lenin;
cp if((lenin = read(device_fd, packet->data + 14, MTU - 14)) <= 0) {
{
int lenin;
cp if((lenin = read(device_fd, packet->data + 14, MTU - 14)) <= 0) {
@@
-117,7
+117,7
@@
int read_packet(vpn_packet_t * packet)
return 0;
cp}
return 0;
cp}
-int write_packet(vpn_packet_t *
packet)
+int write_packet(vpn_packet_t *packet)
{
cp if(debug_lvl >= DEBUG_TRAFFIC)
syslog(LOG_DEBUG, _("Writing packet of %d bytes to %s"),
{
cp if(debug_lvl >= DEBUG_TRAFFIC)
syslog(LOG_DEBUG, _("Writing packet of %d bytes to %s"),