Tiny fixes from 6Wind patch.
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c
index dfbf3f6..0ac82a6 100644
--- a/ospfd/ospf_main.c
+++ b/ospfd/ospf_main.c
@@ -183,7 +183,7 @@
progname = ((p = strrchr (argv[0], '/')) ? ++p : argv[0]);
/* Invoked by a priviledged user? -- endo. */
- if (getuid () != 0)
+ if (geteuid () != 0)
{
errno = EPERM;
perror (progname);
@@ -290,8 +290,10 @@
/* Create VTY socket */
vty_serv_sock (vty_addr, vty_port, OSPF_VTYSH_PATH);
+#ifdef DEBUG
/* Print banner. */
zlog (NULL, LOG_INFO, "OSPFd (%s) starts", ZEBRA_VERSION);
+#endif
/* Fetch next active thread. */
while (thread_fetch (master, &thread))