ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtc.C
(Generate patch)

Comparing rxvt-unicode/src/rxvtc.C (file contents):
Revision 1.27 by root, Fri Aug 18 23:03:31 2006 UTC vs.
Revision 1.29 by root, Sun Nov 18 00:17:20 2007 UTC

37 37
38#define STATUS_SUCCESS 0 38#define STATUS_SUCCESS 0
39#define STATUS_FAILURE 1 39#define STATUS_FAILURE 1
40#define STATUS_CONNECTION_FAILED 2 40#define STATUS_CONNECTION_FAILED 2
41 41
42struct client : rxvt_connection { 42struct client : rxvt_connection
43{
43 client (); 44 client ();
44}; 45};
45 46
46client::client () 47client::client ()
47{ 48{
48 sockaddr_un sa; 49 sockaddr_un sa;
49 char *sockname = rxvt_connection::unix_sockname (); 50 char *sockname = rxvt_connection::unix_sockname ();
50 51
51 if (strlen(sockname) >= sizeof(sa.sun_path)) 52 if (strlen(sockname) >= sizeof(sa.sun_path))
52 { 53 {
53 fputs ("socket name too long, aborting.\n", stderr); 54 fputs ("socket name too long, aborting.\n", stderr);
54 exit (STATUS_FAILURE); 55 exit (STATUS_FAILURE);
55 } 56 }
56 57
57 if ((fd = socket (AF_UNIX, SOCK_STREAM, 0)) < 0) 58 if ((fd = socket (AF_UNIX, SOCK_STREAM, 0)) < 0)
58 { 59 {
59 perror ("unable to create communications socket"); 60 perror ("unable to create communications socket");
60 exit (STATUS_FAILURE); 61 exit (STATUS_FAILURE);
61 } 62 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines