Switch to unsigned keys in hash, according to issue #1688290

in the sf tracker
This commit is contained in:
Hisham Muhammad
2007-04-05 19:53:23 +00:00
parent e3198ca63b
commit a227b20fef
7 changed files with 30 additions and 30 deletions

View File

@ -35,7 +35,7 @@ void UsersTable_delete(UsersTable* this) {
free(this);
}
char* UsersTable_getRef(UsersTable* this, int uid) {
char* UsersTable_getRef(UsersTable* this, unsigned int uid) {
char* name = (char*) (Hashtable_get(this->users, uid));
if (name == NULL) {
struct passwd* userData = getpwuid(uid);