Menu

#2 const keyword missing in test_auth.cpp

open-fixed
nobody
None
5
2005-04-23
2004-11-09
Anonymous
No

The comiler failed with following error when compiling
mod_cplusplus:
++ -DHAVE_CONFIG_H -I. -I. -I../..
-DAP_HAVE_DESIGNATED_INITIALIZER -I/usr/include/apache2
-g -I/tmp/mod_cplusplus/mod_cplusplus/include -g -O2 -c
test_auth.cpp -MT test_auth.lo -MD -MP -MF
.deps/test_auth.TPlo -fPIC -DPIC -o .libs/test_auth.o
test_auth.cpp: In member function `virtual int
AuthHandler::check_user_id(ApacheRequestRec*)':
test_auth.cpp:28: error: invalid conversion from `const
char*' to `char*'
make[3]: *** [test_auth.lo] Error 1
make[3]: Leaving directory
`/tmp/mod_cplusplus/mod_cplusplus/example/handler'

In order to fix it I added the const keyword to
test_auth.cpp line 25:
- char *sent_user = pRequest->user();
+ const char *sent_user = pRequest->user();

regards,

Arno

Discussion

  • Nobody/Anonymous

    patch for fixed const keyword in test_auth.cpp

     
  • John K. Sterling

    Logged In: YES
    user_id=457654

    Hi Arno -

    I think these are all fixed now in 1.5. Do you want to try
    again and let me know?

    John

     
  • John K. Sterling

    • status: open --> open-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.