Show
Ignore:
Timestamp:
05/08/08 11:05:30 (5 months ago)
Author:
smoku
Message:

Included crypt() function prototype from unistd.h

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/storage/authreg_mysql.c

    r618 r647  
    2323#include "c2s.h" 
    2424#include <mysql.h> 
     25#include <unistd.h> 
    2526 
    2627#define MYSQL_LU  1024   /* maximum length of username - should correspond to field length */ 
     
    147148                break; 
    148149 
    149         case MPC_CRYPT: 
     150        case MPC_CRYPT: 
    150151                crypted_pw = crypt(password,db_pw_value); 
    151152                ret = (strcmp(crypted_pw, db_pw_value) != 0); 
     
    153154 
    154155        default: 
    155                 /* should never happen */ 
     156        /* should never happen */ 
    156157                ret = 1; 
    157158                log_write(ar->c2s->log, LOG_ERR, "Unknown encryption type which passed through config check.");