X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Fmacros.c;h=cba5e23b55ba90cdb7d2436547ce4e3e237de849;hb=444f1ae2c091de3ce8646fcd5be4479a46deb1d4;hp=802f0631942be93fa8c47e1ef97bfb226e4e33cd;hpb=f1f8b8a867c800b21b6a03767252403c2f72cae2;p=mono.git diff --git a/support/macros.c b/support/macros.c index 802f0631942..cba5e23b55b 100644 --- a/support/macros.c +++ b/support/macros.c @@ -81,18 +81,18 @@ int helper_Mono_Posix_Stat(const char *filename, int dereference, return 0; } -const char *helper_Mono_Posix_GetUserName(int uid) { +char *helper_Mono_Posix_GetUserName(int uid) { struct passwd *p = getpwuid(uid); if (p == NULL) return NULL; return strdup (p->pw_name); } -const char *helper_Mono_Posix_GetGroupName(int gid) { +char *helper_Mono_Posix_GetGroupName(int gid) { struct group *p = getgrgid(gid); if (p == NULL) return NULL; return strdup (p->gr_name); } -const char *helper_Mono_Posix_readdir(void *dir) { +char *helper_Mono_Posix_readdir(void *dir) { struct dirent* e = readdir((DIR*) dir); if (e == NULL) return NULL; return strdup (e->d_name);