summaryrefslogtreecommitdiff
path: root/src/state/hpr_wall_seconds.c
blob: 6c0363bca64033424c10bc21dc5203790b3f7f55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ISC license. */

#include "hpr.h"

void hpr_wall_seconds (unsigned int secs)
{
  char buf[300] = HPR_WALL_BANNER ;
  size_t n = sizeof(HPR_WALL_BANNER) - 1 ;
  n += hpr_fmttime(buf + n, 300 - n, secs) ;
  buf[n++] = 0 ;
  hpr_wall(buf) ;
}