Changeset 649:5e5d8152c229 in freeDiameter for libfreeDiameter/messages.c
- Timestamp:
- Jan 5, 2011, 5:13:34 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfreeDiameter/messages.c
r648 r649 919 919 if (timeout) { 920 920 memcpy(&msg->msg_cb.timeout, timeout, sizeof(struct timespec)); 921 } else {922 memset(&msg->msg_cb.timeout, 0, sizeof(struct timespec)); /* clear the area */923 921 } 924 922 … … 938 936 939 937 return 0; 940 } 938 } 939 940 struct timespec *fd_msg_anscb_gettimeout( struct msg * msg ) 941 { 942 TRACE_ENTRY("%p", msg); 943 944 /* Check the parameters */ 945 CHECK_PARAMS_DO( CHECK_MSG(msg), return NULL ); 946 947 if (!msg->msg_cb.timeout.tv_sec) { 948 return NULL; 949 } 950 951 return &msg->msg_cb.timeout; 952 } 941 953 942 954 /* Associate routing lists */
Note: See TracChangeset
for help on using the changeset viewer.