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 ; }