[libpri-commits] trunk - r277 in /trunk: libpri.h pri.c
pri_internal.h
libpri-commits at lists.digium.com
libpri-commits at lists.digium.com
Sun Dec 4 08:32:56 CST 2005
Author: russell
Date: Sun Dec 4 09:32:46 2005
New Revision: 277
URL: http://svn.digium.com/view/libpri?rev=277&view=rev
Log:
change 'char *' to 'const char *' for useruserinfo to go along with the fixes
from r7327 in the asterisk trunk
Modified:
trunk/libpri.h
trunk/pri.c
trunk/pri_internal.h
Modified: trunk/libpri.h
URL: http://svn.digium.com/view/libpri/trunk/libpri.h?rev=277&r1=276&r2=277&view=diff
==============================================================================
--- trunk/libpri.h (original)
+++ trunk/libpri.h Sun Dec 4 09:32:46 2005
@@ -528,9 +528,9 @@
extern int pri_sr_set_redirecting(struct pri_sr *sr, char *num, int plan, int pres, int reason);
#define PRI_USER_USER_TX
/* Set the user user field. Warning! don't send binary data accross this field */
-extern void pri_sr_set_useruser(struct pri_sr *sr, char *userchars);
-
-extern void pri_call_set_useruser(q931_call *sr, char *userchars);
+extern void pri_sr_set_useruser(struct pri_sr *sr, const char *userchars);
+
+extern void pri_call_set_useruser(q931_call *sr, const char *userchars);
extern int pri_setup(struct pri *pri, q931_call *call, struct pri_sr *req);
Modified: trunk/pri.c
URL: http://svn.digium.com/view/libpri/trunk/pri.c?rev=277&r1=276&r2=277&view=diff
==============================================================================
--- trunk/pri.c (original)
+++ trunk/pri.c Sun Dec 4 09:32:46 2005
@@ -247,13 +247,13 @@
return p;
}
-void pri_call_set_useruser(q931_call *c, char *userchars)
+void pri_call_set_useruser(q931_call *c, const char *userchars)
{
if (userchars)
libpri_copy_string(c->useruserinfo, userchars, sizeof(c->useruserinfo));
}
-void pri_sr_set_useruser(struct pri_sr *sr, char *userchars)
+void pri_sr_set_useruser(struct pri_sr *sr, const char *userchars)
{
sr->useruserinfo = userchars;
}
Modified: trunk/pri_internal.h
URL: http://svn.digium.com/view/libpri/trunk/pri_internal.h?rev=277&r1=276&r2=277&view=diff
==============================================================================
--- trunk/pri_internal.h (original)
+++ trunk/pri_internal.h Sun Dec 4 09:32:46 2005
@@ -129,7 +129,7 @@
int redirectingpres;
int redirectingreason;
int justsignalling;
- char *useruserinfo;
+ const char *useruserinfo;
};
/* Internal switch types */
More information about the libpri-commits
mailing list