Changeset 31709e8d for lib/trace.c
- Timestamp:
- 10/14/05 15:25:46 (17 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 06a68c5
- Parents:
- 5395ce6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/trace.c
r5395ce6 r31709e8d 170 170 * Prints out a descriptive error message for the currently set trace_err value 171 171 */ 172 void trace_perror(c har *caller) {172 void trace_perror(const char *caller) { 173 173 switch (trace_err.err_num) { 174 174 case E_BAD_FORMAT: … … 206 206 * 207 207 */ 208 char *trace_get_output_format(struct libtrace_out_t *libtrace) { 208 SIMPLE_FUNCTION 209 char *trace_get_output_format(const struct libtrace_out_t *libtrace) { 209 210 char * format = libtrace->format->name; 210 211 … … 236 237 * and an error is output to stdout. 237 238 */ 238 struct libtrace_t *trace_create(c har *uri) {239 struct libtrace_t *trace_create(const char *uri) { 239 240 struct libtrace_t *libtrace = malloc(sizeof(struct libtrace_t)); 240 241 char *scan = 0; … … 304 305 * that are not associated with a libtrace_t structure. 305 306 */ 306 struct libtrace_t * trace_create_dead (c har *uri) {307 struct libtrace_t * trace_create_dead (const char *uri) { 307 308 struct libtrace_t *libtrace = malloc(sizeof(struct libtrace_t)); 308 309 char *scan = calloc(sizeof(char),URI_PROTO_LINE); … … 357 358 */ 358 359 359 struct libtrace_out_t *trace_output_create(c har *uri) {360 struct libtrace_out_t *trace_output_create(const char *uri) { 360 361 struct libtrace_out_t *libtrace = malloc(sizeof(struct libtrace_out_t)); 361 362 … … 503 504 * @author Shane Alcock 504 505 * */ 505 int trace_write_packet(struct libtrace_out_t *libtrace, struct libtrace_packet_t *packet) {506 int trace_write_packet(struct libtrace_out_t *libtrace, const struct libtrace_packet_t *packet) { 506 507 assert(libtrace); 507 508 assert(packet); … … 1365 1366 } 1366 1367 1367 char * trace_parse_uri(c har *uri, char **format) {1368 char * trace_parse_uri(const char *uri, char **format) { 1368 1369 char *uridata = 0; 1369 1370
Note: See TracChangeset
for help on using the changeset viewer.