Index: utils/astman.c =================================================================== RCS file: /usr/cvsroot/asterisk/utils/astman.c,v retrieving revision 1.15 diff -u -r1.15 astman.c --- utils/astman.c 26 May 2005 12:01:55 -0000 1.15 +++ utils/astman.c 26 May 2005 15:28:15 -0000 @@ -28,6 +28,12 @@ #define MAX_HEADERS 80 #define MAX_LEN 256 +#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) +#define RETURNPTR_CAST +#else +#define RETURNPTR_CAST (const char **) +#endif + static struct ast_mansession { struct sockaddr_in sin; int fd; @@ -436,7 +442,7 @@ newtCenteredWindow(60,7, msg); - inpfield = newtEntry(5, 2, "", 50, (const char **)&input, 0); + inpfield = newtEntry(5, 2, "", 50, RETURNPTR_CAST &input, 0); ok = newtButton(22, 3, "OK"); cancel = newtButton(32, 3, "Cancel"); form = newtForm(NULL, NULL, 0); @@ -603,8 +609,8 @@ ulabel = newtLabel(4,2,"Username:"); plabel = newtLabel(4,3,"Password:"); - username = newtEntry(14, 2, "", 20, (const char **)&user, 0); - password = newtEntry(14, 3, "", 20, (const char **)&pass, NEWT_FLAG_HIDDEN); + username = newtEntry(14, 2, "", 20, RETURNPTR_CAST &user, 0); + password = newtEntry(14, 3, "", 20, RETURNPTR_CAST &pass, NEWT_FLAG_HIDDEN); form = newtForm(NULL, NULL, 0); newtFormAddComponents(form, username, password, login, cancel, label, ulabel, plabel,NULL);