X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fpcap.c;h=aa63be36a3ccdbb1e6e6eb5a645337d220e970c2;hb=61a7b1e6fee6c81b0d8551898d2b108de2b42536;hp=afd41fa814c08d4f6752563e7decd8db8b7c3b65;hpb=c18ea70d06e980dc768166881c5aeac0b3491561;p=openvswitch diff --git a/lib/pcap.c b/lib/pcap.c index afd41fa8..aa63be36 100644 --- a/lib/pcap.c +++ b/lib/pcap.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira Networks. + * Copyright (c) 2009, 2010 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -100,7 +100,7 @@ pcap_write_header(FILE *file) ph.sigfigs = 0; ph.snaplen = 1518; ph.network = 1; /* Ethernet */ - fwrite(&ph, sizeof ph, 1, file); + ignore(fwrite(&ph, sizeof ph, 1, file)); } int @@ -159,6 +159,6 @@ pcap_write(FILE *file, struct ofpbuf *buf) prh.ts_usec = 0; prh.incl_len = buf->size; prh.orig_len = buf->size; - fwrite(&prh, sizeof prh, 1, file); - fwrite(buf->data, buf->size, 1, file); + ignore(fwrite(&prh, sizeof prh, 1, file)); + ignore(fwrite(buf->data, buf->size, 1, file)); }