version 1.30, 2014/10/08 17:35:58 |
version 1.31, 2014/10/20 23:27:14 |
|
|
void |
void |
screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit) |
screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit) |
{ |
{ |
char hn[MAXHOSTNAMELEN]; |
char host[HOST_NAME_MAX]; |
|
|
s->grid = grid_create(sx, sy, hlimit); |
s->grid = grid_create(sx, sy, hlimit); |
|
|
if (gethostname(hn, MAXHOSTNAMELEN) == 0) |
if (gethostname(host, HOST_NAME_MAX) == 0) |
s->title = xstrdup(hn); |
s->title = xstrdup(host); |
else |
else |
s->title = xstrdup(""); |
s->title = xstrdup(""); |
|
|