1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: netdisp.c |
2 | * File: netdisp.c |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * $Id: netdisp.C,v 1.1 2003/11/24 17:28:08 pcg Exp $ |
4 | * $Id: netdisp.C,v 1.3 2004/01/31 00:20:21 pcg Exp $ |
5 | * |
5 | * |
6 | * All portions of code are copyright by their respective author/s. |
6 | * All portions of code are copyright by their respective author/s. |
7 | * Copyright (c) 1996 Chuck Blake <cblake@BBN.COM> |
7 | * Copyright (c) 1996 Chuck Blake <cblake@BBN.COM> |
8 | * - original version |
8 | * - original version |
9 | * Copyright (c) 1997 mj olesen <olesen@me.queensu.ca> |
9 | * Copyright (c) 1997 mj olesen <olesen@me.queensu.ca> |
… | |
… | |
38 | #ifdef DISPLAY_IS_IP |
38 | #ifdef DISPLAY_IS_IP |
39 | #include "netdisp.h" |
39 | #include "netdisp.h" |
40 | |
40 | |
41 | /*----------------------------------------------------------------------*/ |
41 | /*----------------------------------------------------------------------*/ |
42 | /* return NULL a pointer to buffer which may be freed */ |
42 | /* return NULL a pointer to buffer which may be freed */ |
43 | /* EXTPROTO */ |
|
|
44 | char * |
43 | char * |
45 | rxvt_network_display(const char *display) |
44 | rxvt_network_display(const char *display) |
46 | { |
45 | { |
47 | char buffer[1024], *rval = NULL; |
46 | char buffer[1024], *rval = NULL; |
48 | struct ifconf ifc; |
47 | struct ifconf ifc; |