]> andersk Git - moira.git/commitdiff
Make this build under Win32 again; remove unused variable.
authorzacheiss <zacheiss>
Tue, 21 Aug 2001 21:56:54 +0000 (21:56 +0000)
committerzacheiss <zacheiss>
Tue, 21 Aug 2001 21:56:54 +0000 (21:56 +0000)
clients/stella/stella.c

index 4142aae7eaf5a5258854278c41bf1908af3f1a2b..cff90a5a2f8db7a75bd33d0a6ece73ea62dce97a 100644 (file)
  * <mit-copyright.h>.
  */
 
-#include <sys/types.h>
-#include <sys/socket.h>
-
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
 #include <mit-copyright.h>
 #include <moira.h>
 #include <moira_site.h>
 #include <stdlib.h>
 #include <string.h>
 
+#ifdef _WIN32
+typedef unsigned long in_addr_t;
+#else
+#include <sys/types.h>
+#include <sys/socket.h>
+
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#endif
+
 RCSID("$Header$");
 
 struct owner_type {
@@ -854,7 +858,6 @@ void show_host_info(char **argv)
 
 void show_host_info_unformatted(char **argv)
 {
-  char tbuf[256];
   char *args[3];
   struct mqelem *elem = NULL;
   int stat;
This page took 0.13924 seconds and 5 git commands to generate.