A general appearance by a defendant is a waiver of any defect in the service of the *594summons and complaint, and may ©ven dispense with, the necessity of the service of all process, the purpose of which is only to bring him into court. — Goldsmith v. Stetson & Co., 39 Ala. 183; McCaskey v. Pollock, 82 Ala. 174; 2 Brick. Dig. p. 366, §§ 81-87. Conceding that the service of the summons and complaint, as made by the sheriff in this case, was defective, because left with the wrong person— one who was no longer an officer or agent of the defendant corporation — the record shows a general appearance by the defendant, and participation in the trial of the cause on its merits; and this cured the alleged defect in the service of the process.
The judgment-entry shows no ruling by the court below on the demurrer. It is not shown that the action of the Circuit Court was invoked to adjudge its legal sufficiency, and pleas to the merits of the action are shown to have been filed. The demurrer must, therefore, be presumed to have been waived. — Pitts v. District of Opelika, 79 Ala. 527.
The two actions here tried together were between the same parties, and pending in the same court simultaneously, and were each based on matters ex contractu, which could have properly been joined. They were, therefore, properly consolidated by order of court, especially as the record shows this was done by consent of the parties litigant. — Code, 1886, § 2742; Berry v. Ferguson, 58 Ala. 314.
We discover no error in the record, and the judgment is affirmed.