X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fpcap.c;h=1033ba9f40f4859bde5fa49559117961cd324be8;hb=cb22974d773942d66da42b700b8bca0db27a0920;hp=aa63be36a3ccdbb1e6e6eb5a645337d220e970c2;hpb=4749f73d12c844b318af7f45cf45e1acac9f7c08;p=sliver-openvswitch.git diff --git a/lib/pcap.c b/lib/pcap.c index aa63be36a..1033ba9f4 100644 --- a/lib/pcap.c +++ b/lib/pcap.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira, Inc. + * Copyright (c) 2009, 2010, 2012 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ #include #include "pcap.h" -#include #include #include #include @@ -50,7 +49,7 @@ pcap_open(const char *file_name, const char *mode) { FILE *file; - assert(!strcmp(mode, "rb") || !strcmp(mode, "wb")); + ovs_assert(!strcmp(mode, "rb") || !strcmp(mode, "wb")); file = fopen(file_name, mode); if (file == NULL) {