Changeset 1eddf6b for crypting.c


Ignore:
Timestamp:
2005-12-08T12:30:43Z (16 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
c2295f7
Parents:
c3ffa45
Message:

Add some const

File:
1 edited

Legend:

Unmodified
Added
Removed
  • crypting.c

    rc3ffa45 r1eddf6b  
    6767/* USE WITH CAUTION!
    6868   Sets pass without checking */
    69 void setpassnc (irc_t *irc, char *pass) {
     69void setpassnc (irc_t *irc, const char *pass)
     70{
    7071        if (!set_find (irc, "password"))
    7172                set_add (irc, "password", NULL, passchange);
     
    8182}
    8283
    83 char *passchange (irc_t *irc, void *set, char *value) {
     84char *passchange (irc_t *irc, void *set, const char *value) {
    8485        setpassnc (irc, value);
    8586        return (NULL);
    8687}
    8788
    88 int setpass (irc_t *irc, char *pass, char* md5sum) {
     89int setpass (irc_t *irc, const char *pass, const char* md5sum)
     90{
    8991        md5_state_t md5state;
    9092        md5_byte_t digest[16];
Note: See TracChangeset for help on using the changeset viewer.