Mercurial > dovecot > core-2.2
view src/lib-mail/mail-user-hash.h @ 22477:125e78e85bcc
lib-mail: Make sure mail_user_hash() won't return 0 as the hash.
It doesn't seem to actually happen, but this makes sure of it.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 19 Jul 2017 16:49:18 +0300 |
parents | 817ef4c9f1f3 |
children |
line wrap: on
line source
#ifndef MAIL_USER_HASH #define MAIL_USER_HASH /* Return a hash for username, based on given format. The format can use %n, %d and %u variables. The returned hash is never 0. */ unsigned int mail_user_hash(const char *username, const char *format); #endif