]> andersk Git - moira.git/blobdiff - lib/mr_connect.c
second code style cleanup: void/void * usage, proper #includes. try to
[moira.git] / lib / mr_connect.c
index e18c10b8ba234a8371f158c034ccc969a23446ea..091b1d06c959ba8edb354f3a69453f031838f64e 100644 (file)
@@ -1,27 +1,26 @@
-/*
- *     $Source$
- *     $Author$
- *     $Header$
+/* $Id $
  *
- *     Copyright (C) 1987, 1990 by the Massachusetts Institute of Technology
- *     For copying and distribution information, please see the file
- *     <mit-copyright.h>.
+ * This routine is part of the client library.  It handles
+ * creating a connection to the moira server.
  *
- *     This routine is part of the client library.  It handles
- *     creating a connection to the mr server.
+ * Copyright (C) 1987-1998 by the Massachusetts Institute of Technology
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
  */
 
-#ifndef lint
-static char *rcsid_mr_connect_c = "$Header$";
-#endif
-
 #include <mit-copyright.h>
-#include "mr_private.h"
+#include <moira.h>
 #include <moira_site.h>
-#include <string.h>
+#include "mr_private.h"
+
+#include <errno.h>
 #include <stdlib.h>
+#include <string.h>
+
 #include <hesiod.h>
 
+RCSID("$Header$");
+
 static char *mr_server_host = 0;
 
 /*
@@ -32,7 +31,6 @@ static char *mr_server_host = 0;
 
 int mr_connect(char *server)
 {
-  extern int errno;
   char *p, **pp, sbuf[256];
 
   if (!mr_inited)
@@ -80,7 +78,7 @@ int mr_connect(char *server)
    * stash hostname for later use
    */
 
-  mr_server_host = strsave(server);
+  mr_server_host = strdup(server);
   if ((p = strchr(mr_server_host, ':')))
     *p = '\0';
   mr_server_host = canonicalize_hostname(mr_server_host);
This page took 0.031963 seconds and 4 git commands to generate.