* Allocates memory for a colormap @cmap. @len is the
* number of entries in the palette.
*
- * Returns negative errno on error, or zero on success.
+ * Returns -1 errno on error, or zero on success.
*
*/
fail:
fb_dealloc_cmap(cmap);
- return -ENOMEM;
+ return -1;
}
/**