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 $ |
|
|
5 | * |
4 | * |
6 | * All portions of code are copyright by their respective author/s. |
5 | * All portions of code are copyright by their respective author/s. |
7 | * Copyright (c) 1996 Chuck Blake <cblake@BBN.COM> |
6 | * Copyright (c) 1996 Chuck Blake <cblake@BBN.COM> |
8 | * - original version |
7 | * - original version |
9 | * Copyright (c) 1997 mj olesen <olesen@me.queensu.ca> |
8 | * Copyright (c) 1997 mj olesen <olesen@me.queensu.ca> |
… | |
… | |
38 | #ifdef DISPLAY_IS_IP |
37 | #ifdef DISPLAY_IS_IP |
39 | #include "netdisp.h" |
38 | #include "netdisp.h" |
40 | |
39 | |
41 | /*----------------------------------------------------------------------*/ |
40 | /*----------------------------------------------------------------------*/ |
42 | /* return NULL a pointer to buffer which may be freed */ |
41 | /* return NULL a pointer to buffer which may be freed */ |
43 | /* EXTPROTO */ |
|
|
44 | char * |
42 | char * |
45 | rxvt_network_display(const char *display) |
43 | rxvt_network_display(const char *display) |
46 | { |
44 | { |
47 | char buffer[1024], *rval = NULL; |
45 | char buffer[1024], *rval = NULL; |
48 | struct ifconf ifc; |
46 | struct ifconf ifc; |