>Number: 1251
>Category: general
>Synopsis: Compiler warning compiling support/htpasswd.c
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Sat Oct 18 18:50:00 PDT 1997
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.3b2
>Environment:
SunOS monkeyboy.sendmail.org 5.6 Generic sun4m sparc SUNW,SPARCstation-5
>Description:
Compiling htpasswd.c gets:
gcc -O2 -DSOLARIS2=260 -DSTATUS -I/usr/local/lib htpasswd.c -o htpasswd -lsocke\
t -lnsl -lpthread -ldb
htpasswd.c: In function `add_password':
htpasswd.c:125: warning: assignment makes pointer from integer without a caset
>How-To-Repeat:
>Fix:
A patch:
*** htpasswd.c~orig Sat Oct 18 21:33:50 1997
--- htpasswd.c Sat Oct 18 21:33:02 1997
***************
*** 112,117 ****
--- 112,118 ----
void add_password(char *user, FILE *f)
{
char *pw, *cpw, salt[3];
+ extern char *crypt(char *, char *);
pw = strd((char *) getpass("New password:"));
if (strcmp(pw, (char *) getpass("Re-type new password:"))) {
%0
>Audit-Trail:
>Unformatted: