From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason at zx2c4.com (Jason A. Donenfeld) Date: Fri, 19 Oct 2018 00:52:03 +0200 Subject: [PATCH 1/1] cgitrc: handle value "0" for max-repo-count In-Reply-To: <20180911085646.3cf9c469@leda> References: <20180716143850.1726-1-list@eworm.de> <20180716164115.4ac02916@leda> <20180911085646.3cf9c469@leda> Message-ID: Hey Christian, We should indeed introduce some sanitation helpers to deal with these in the general case. API suggestion: type_t parse_int(const char *str, type_t min, type_t max, type_t fallback_if_invalid); What would you think of that? Regards, Jason