Changeset 403:26aafbbc1640 in freeDiameter for extensions/app_acct
- Timestamp:
- Jul 8, 2010, 2:24:19 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions/app_acct
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_acct/acct_conf.y
r284 r403 59 59 int yyparse(char * conffile); 60 60 61 /* The Lex parser prototype */ 62 int acct_conflex(YYSTYPE *lvalp, YYLTYPE *llocp); 63 61 64 /* the global configuration */ 62 65 struct acct_conf * acct_config = NULL; … … 89 92 } 90 93 94 if (!TRACE_BOOL(FULL)) 95 return 0; 96 91 97 struct fd_list * li; 92 if (!TRACE_BOOL(FULL))93 return;94 98 95 99 fd_log_debug("[app_acct] Configuration dump:\n"); … … 110 114 } 111 115 fd_log_debug("[app_acct] Complete.\n"); 116 return 0; 112 117 } 113 118 -
extensions/app_acct/acct_db.c
r292 r403 64 64 size_t sql_allocd = 0; /* The malloc'd size of the buffer */ 65 65 size_t sql_offset = 0; /* The actual data already written in this buffer */ 66 size_t p;67 66 int idx = 0; 68 67 PGresult * res; -
extensions/app_acct/app_acct.c
r286 r403 48 48 static int acct_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act) 49 49 { 50 struct msg_hdr *hdr = NULL;51 50 struct msg * m; 52 51 struct avp * a = NULL; 53 52 struct avp_hdr * art=NULL, *arn=NULL; /* We keep a pointer on the Accounting-Record-{Type, Number} AVPs from the query */ 54 char * s;55 53 struct acct_record_list rl; 56 54
Note: See TracChangeset
for help on using the changeset viewer.