Commit 0d0cc4f4 0d0cc4f440ec32596150279b1153bfbdc200cc17 by Sergey Poznyakoff

(getMpwuid): Bugfix. It should take a pointer as its argument

1 parent 801e1938
......@@ -171,7 +171,7 @@ getMpwnam (const char *username)
}
struct passwd *
getMpwuid (uid_t uid)
getMpwuid (uid_t *puid)
{
char *QueryStr = NULL;
MYSQL *m;
......@@ -202,7 +202,7 @@ getMpwuid (uid_t uid)
return NULL;
}
snprintf (uidstr, sizeof (uidstr), "%u", uid);
snprintf (uidstr, sizeof (uidstr), "%u", *puid);
QueryStr = sql_expand_query (sql_getpwuid_query, uidstr);
if (!QueryStr)
......
......@@ -12,7 +12,7 @@ extern char *sql_socket;
extern int sql_port;
struct passwd *getMpwnam (const char *username);
struct passwd *getMpwuid (uid_t uid);
struct passwd *getMpwuid (uid_t *puid);
struct spwd *getMspnam (const char *username);
#define MHOST NULL /* Hostname to connect to. NULL for UNIX
......