Implement 802.1D Spanning Tree Protocol.
[sliver-openvswitch.git] / datapath / unit.c
index dfc1279..73aee7b 100644 (file)
@@ -1,10 +1,11 @@
 /*
  * Distributed under the terms of the GNU GPL version 2.
- * Copyright (c) 2007 The Board of Trustees of The Leland Stanford Junior Univer
-sity
+ * Copyright (c) 2007, 2008 The Board of Trustees of The Leland 
+ * Stanford Junior University
  */
 
 #include <linux/autoconf.h>
+#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/version.h>
@@ -71,7 +72,11 @@ static int run_test(const char *name, size_t len)
 int unit_init(void)
 {
        int n_pass = 0, n_fail = 0;
-       char *p = run ?: "";
+       char *p = run;
+
+       if (p == NULL) {
+               p = "";
+       }
        for (;;) {
                static const char white_space[] = " \t\r\n\v,";
                int len;