*95 OPINION
Thе appellant’s petition for a writ of habeas corpus was denied by the district court and he brings this appeal.
A criminal complaint was filed against the appellant on September 16, 1969, charging him with the sale and possession of narcotics. On November 5, 1969, the date set for the preliminary examination, the state verbally moved for а continuance because one of its witnesses was not available to testify. Ovеr the objection of the appellant, the magistrate granted the state’s motiоn and the case was reset for December 11, 1969, with the admonition that if the state was not ready to proceed on that date it would be dismissed. 1
On December 10, 1969, when it again bеcame apparent to the state that one of its witnesses would be unable to attend *96 the preliminary examination, a written motion for another continuance was filed, along with the required affidavit, and both were served upon counsel for the аppellant.
At the hearing on December 11, 1969, the appellant moved for a dismissal upon the ground that the magistrate had previously admonished the state that the cаse would be dismissed if it was not ready to proceed. However, the magistrate dismissed thе proceedings upon his own motion when he discovered that the complaint wаs defective because it had not been signed or sworn to in compliance with NRS 171.102. 2
On Dеcember 12, 1969, the state filed another complaint against the appellant оn the same charges, and on March 5, 1970, the appellant was indicted by the grand jury for thоse same offenses. The appellant’s petition for a writ of habeas corpus followed. On October 13, 1970, the petition was denied.
The appellant contends that his writ application should have been granted because the state had failed to comply with the procedural rules of the justice’s court in seeking a cоntinuance for nonavailability of a witness. (See footnote 1, supra.) Relying on Maes v. Sheriff,
By his failure to raise the issue of a procedural defect by habeas, after the hearing on November 5, 1969, the appellant waived the aegis of Hill v. Sheriff, supra, and the magistrate was not obligated to consider dismissal of the complaint on December 11, 1969, bеcause of the prior procedural inadequacies. The dismissal of the cоmplaint for patent defects was discretionary with the magistrate, and it was not a bar to *97 further prosecution. Maes v. Sheriff, supra, is not helpful to the appellant’s рosition, consequently, subsequent proceedings via indictment are permissible. (NRS 178.562(2).)
The distriсt court did not err in denying the appellant’s petition for a writ of habeas corpus.
Affirmed.
Notes
Tbe state did not show good cause for the requested continuance by the submission of an affidavit in compliance with DCR 21, which has been made applicable to justiсe court proceedings. Oberle v. Fogliani,
NRS 171.102: “The complaint is a written statement of the essential facts constituting the public offense charged. It shall be made upon oath before a magistrate or a notary public.”
