~ubuntu-branches/ubuntu/maverick/crossfire-client/maverick

« back to all changes in this revision

Viewing changes to common/metaserver.c

  • Committer: Bazaar Package Importer
  • Author(s): Kari Pahula
  • Date: 2007-04-13 21:15:44 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070413211544-vjo6zesj6g0wgmwf
Tags: 1.10.0-1
* New upstream release
* Install the README, README-dev and TODO files specific to the GTK2
  client to the corresponding package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
const char *rcsid_common_metaserver_c =
2
 
    "$Id: metaserver.c,v 1.23 2006/02/25 13:55:12 ryo_saeba Exp $";
 
2
    "$Id: metaserver.c 5010 2006-10-07 18:29:47Z qal21 $";
3
3
/*
4
4
    Crossfire client, a client program for the crossfire program.
5
5
 
32
32
#include <sys/types.h>
33
33
#include <sys/socket.h>
34
34
#include <netinet/in.h>
35
 
#include <ctype.h>
36
35
#include <arpa/inet.h>
 
36
#else
 
37
#include <windows.h>
37
38
#endif /* WIN32 */
 
39
#include <ctype.h>
38
40
#include <stdio.h>
39
41
 
40
42
#include <client.h>
378
380
    }
379
381
    if (show_selection) {
380
382
        /* Show default/current server */
381
 
        sprintf(buf, "%2d)  %s (default)", meta_numservers+1+cached_servers_num, server);
382
 
        draw_info(buf, NDI_BLACK);
 
383
        if (server) {
 
384
            sprintf(buf, "%2d)  %s (default)", meta_numservers+1+cached_servers_num, server);
 
385
            draw_info(buf, NDI_BLACK);
 
386
        }
383
387
 
384
388
        draw_info("Choose one of the entries above", NDI_BLACK);
385
389
        draw_info("or type in a hostname/ip address", NDI_BLACK);