value was just a number, b) it doesn't exceed GID_MAX * convert gid to a string with %u not %d * use [gu]id_t instead of int