blob: a2f4468cbb24ab4bb42d652c8839c905b4e5c91c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* ISC license. */
#include <stdint.h>
#include <errno.h>
#include "cdbmake-internal.h"
int cdbmake_posplus (cdbmaker *c, uint32_t len)
{
uint32_t newpos = c->pos + len ;
if (newpos < len) return (errno = ENOMEM, 0) ;
c->pos = newpos ;
return 1 ;
}
|