X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=platform.h;h=acb632ee2eba9a1927b4ebf094bc9ce6d5c15f99;hp=bb7656816d9a84e9f5dff928d96fbe3ac61f6fec;hb=892746056e1082aad991c5287b511d72534542c9;hpb=ef51b303873db5e97b9ddcf12cadc0c5df6bb855 diff --git a/platform.h b/platform.h index bb76568..acb632e 100644 --- a/platform.h +++ b/platform.h @@ -185,24 +185,6 @@ const char *platform_ctime(const time_t *timer); */ char *platform_strncat(char *dest, const char *src, size_t num); -/* - * Function: platform_tmpnam - * Generates names you can use to create temporary files. - * - * Parameters: - * str - Pointer that will hold the generated name and will be identical - * to the name returned by the function. This is a convenient way - * to save the generated name. - * - * Returns: - * Pointer to the name generate or *NULL* if there is a failure. Failure - * can occur if you attempt more than TMP_MAX calls. - * - * Remarks: - * Returns a name unique in the current workign directory. - */ -const char *platform_tmpnam(char *str); - /* * Function: platform_getenv * Get a value from the current enviroment. @@ -216,7 +198,7 @@ const char *platform_tmpnam(char *str); * pointer. The return value is *NULL* if `var` is not found in the * enviroment table. */ -const char *platform_getenv(char *var); +const char *platform_getenv(const char *var); /* * Function: platform_vasprintf