Misc formatting cleanups

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
James Golovich 22 years ago
parent 024f486810
commit 3f9c34f415

@ -68,11 +68,9 @@ void ast_free_ha(struct ast_ha *ha)
/* Copy HA structure */ /* Copy HA structure */
static void ast_copy_ha(struct ast_ha *from, struct ast_ha *to) static void ast_copy_ha(struct ast_ha *from, struct ast_ha *to)
{ {
memcpy(&to->netaddr, &from->netaddr, sizeof(from->netaddr)); memcpy(&to->netaddr, &from->netaddr, sizeof(from->netaddr));
memcpy(&to->netmask, &from->netmask, sizeof(from->netmask)); memcpy(&to->netmask, &from->netmask, sizeof(from->netmask));
to->sense = from->sense; to->sense = from->sense;
} }
/* Create duplicate of ha structure */ /* Create duplicate of ha structure */
@ -109,7 +107,6 @@ struct ast_ha *ast_duplicate_ha_list(struct ast_ha *original)
return (ret); /* Return start of list */ return (ret); /* Return start of list */
} }
struct ast_ha *ast_append_ha(char *sense, char *stuff, struct ast_ha *path) struct ast_ha *ast_append_ha(char *sense, char *stuff, struct ast_ha *path)
{ {
struct ast_ha *ha = malloc(sizeof(struct ast_ha)); struct ast_ha *ha = malloc(sizeof(struct ast_ha));

@ -509,5 +509,4 @@ void ast_cdr_append(struct ast_cdr *cdr, struct ast_cdr *newcdr) {
cdr->next = newcdr; cdr->next = newcdr;
} else } else
ast_log(LOG_ERROR, "Can't append a CDR to NULL!\n"); ast_log(LOG_ERROR, "Can't append a CDR to NULL!\n");
} }

@ -446,7 +446,6 @@ static int cfg_process(struct ast_config *tmp, struct ast_category **_tmpc, stru
,struct ast_comment_struct * ,struct ast_comment_struct *
#endif #endif
); );
struct ast_variable *v; struct ast_variable *v;
#ifdef PRESERVE_COMMENTS #ifdef PRESERVE_COMMENTS
struct ast_comment *com = NULL; struct ast_comment *com = NULL;

@ -345,7 +345,6 @@ static int show_translation(int fd, int argc, char *argv[])
} }
ast_cli(fd," Recalculating Codec Translation (number of sample seconds: %d)\n\n",z); ast_cli(fd," Recalculating Codec Translation (number of sample seconds: %d)\n\n",z);
rebuild_matrix(z); rebuild_matrix(z);
} }
ast_cli(fd, " Translation times between formats (in milliseconds)\n"); ast_cli(fd, " Translation times between formats (in milliseconds)\n");

Loading…
Cancel
Save