/* returns: 1 if image is of given os type 0 otherwise (or on error)  */
int fit_image_check_os(const void *fit, int noffset, uint8_t os)
/* returns: 1 if image is of given os type 0 otherwise (or on error)  */
int fit_image_check_os(const void *fit, int noffset, uint8_t os)
{
	uint8_t image_os;
	if (fit_image_get_os(fit, noffset, &image_os))
		return 0;
	return (os == image_os);
}