/[jscoverage]/trunk/tests/gethostbyname.c
ViewVC logotype

Diff of /trunk/tests/gethostbyname.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 114 by siliconforks, Sat May 31 21:39:39 2008 UTC revision 427 by siliconforks, Wed Feb 18 16:08:33 2009 UTC
# Line 1  Line 1 
1  /*  /*
2      gethostbyname.c - test host lookup      gethostbyname.c - test host lookup
3      Copyright (C) 2008 siliconforks.com      Copyright (C) 2008, 2009 siliconforks.com
4    
5      This program is free software; you can redistribute it and/or modify      This program is free software; you can redistribute it and/or modify
6      it under the terms of the GNU General Public License as published by      it under the terms of the GNU General Public License as published by
# Line 17  Line 17 
17      51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.      51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */  */
19    
20    #include <config.h>
21    
22  #include <assert.h>  #include <assert.h>
23  #include <stdio.h>  #include <stdio.h>
24  #include <stdlib.h>  #include <stdlib.h>
25  #include <string.h>  #include <string.h>
26    
27    #ifdef HAVE_ARPA_INET_H
28  #include <arpa/inet.h>  #include <arpa/inet.h>
29    #endif
30    
31  #include "http-server.h"  #include "http-server.h"
32    
33  int main(int argc, char ** argv) {  int main(int argc, char ** argv) {
34    #ifdef __MINGW32__
35      WSADATA data;
36      if (WSAStartup(MAKEWORD(1, 1), &data) != 0) {
37        return 1;
38      }
39    #endif
40    
41    if (argc < 2) {    if (argc < 2) {
42      exit(EXIT_FAILURE);      exit(EXIT_FAILURE);
43    }    }

Legend:
Removed from v.114  
changed lines
  Added in v.427

  ViewVC Help
Powered by ViewVC 1.1.24