Skip to content

Commit 0cdbe5b

Browse files
author
ralfluebben
committed
*** empty log message ***
1 parent c49142d commit 0cdbe5b

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

RadiusClass/RadiusAttribute.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RadiusAttribute::RadiusAttribute(void)
4040
* @param Octet type : The type of the attribute.
4141
* @param char *value : A pointer to a value for the attribut.
4242
*/
43-
RadiusAttribute::RadiusAttribute(Octet ty, char *value)
43+
RadiusAttribute::RadiusAttribute(Octet ty, const char *value)
4444
{
4545
this->type=ty;
4646
this->value=NULL;

RadiusClass/RadiusAttribute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class RadiusAttribute
4141

4242
RadiusAttribute();
4343
RadiusAttribute(Octet);
44-
RadiusAttribute(Octet, char * );
44+
RadiusAttribute(Octet, const char * );
4545
RadiusAttribute(Octet, string);
4646
RadiusAttribute(Octet, uint32_t);
4747
~RadiusAttribute(void);

RadiusClass/RadiusServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @param int retry : How many times the client should try to send a packet if he doesn't get an answer.
3232
* @param int wait : The time (in seconds) to wait on a response of the radius server.
3333
*/
34-
RadiusServer::RadiusServer(char * name, char * secret,
34+
RadiusServer::RadiusServer(string name, string secret,
3535
int authport, int acctport, int retry, int wait)
3636
{
3737
this->acctport=acctport;

RadiusClass/RadiusServer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class RadiusServer
4040
public:
4141

4242

43-
RadiusServer(char * name="127.0.0.1",char * secret = "", int authport=1812, int acctport=1813, int retry=3, int wait=1);
43+
RadiusServer(string name="127.0.0.1",string secret = "", int authport=1812, int acctport=1813, int retry=3, int wait=1);
4444
~RadiusServer();
4545
RadiusServer &operator=(const RadiusServer &);
4646

main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ int main (void)
3838
unsigned int type_mask=0;
3939

4040

41-
char *env1[9];
42-
char *env2[9];
43-
char *env3[9];
44-
char *env4[9];
41+
const char *env1[9];
42+
const char *env2[9];
43+
const char *env3[9];
44+
const char *env4[9];
4545

4646

47-
char *argv[3];
47+
const char *argv[3];
4848
int type=5;
4949

5050

0 commit comments

Comments
 (0)