~ubuntu-branches/ubuntu/quantal/xdm/quantal

« back to all changes in this revision

Viewing changes to streams.c

  • Committer: Bazaar Package Importer
  • Author(s): Brice Goglin
  • Date: 2010-03-14 11:44:38 UTC
  • mto: (9.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20100314114438-xce9zkmf88jtlq0l
Tags: upstream-1.1.9
ImportĀ upstreamĀ versionĀ 1.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Xorg: streams.c,v 1.4 2001/02/09 02:05:40 xorgcvs Exp $ */
2
1
/*
3
2
 
4
3
Copyright 1988, 1998  The Open Group
26
25
from The Open Group.
27
26
 
28
27
*/
29
 
/* $XFree86: xc/programs/xdm/streams.c,v 3.7 2003/07/09 15:27:39 tsi Exp $ */
30
28
 
31
29
/*
32
30
 * xdm - display manager daemon
39
37
#include "dm_error.h"
40
38
 
41
39
#ifdef XDMCP
42
 
#ifdef STREAMSCONN
 
40
# ifdef STREAMSCONN
43
41
 
44
 
#include <fcntl.h>
45
 
#include <tiuser.h>
46
 
#include <netconfig.h>
47
 
#include <netdir.h>
 
42
#  include <fcntl.h>
 
43
#  include <tiuser.h>
 
44
#  include <netconfig.h>
 
45
#  include <netdir.h>
48
46
 
49
47
extern int      xdmcpFd;
50
48
extern int      chooserFd;
84
82
    RegisterCloseOnFork (xdmcpFd);
85
83
 
86
84
    service.h_host = HOST_SELF;
87
 
    sprintf(bindbuf, "%d", request_port);
 
85
    snprintf(bindbuf, sizeof(bindbuf), "%d", request_port);
88
86
    service.h_serv = bindbuf;
89
87
    netdir_getbyname(nconf, &service, &servaddrs);
90
88
    freenetconfigent(nconf);
165
163
    return;
166
164
}
167
165
 
168
 
#endif /* STREAMSCONN */
 
166
# endif /* STREAMSCONN */
169
167
#endif /* XDMCP */