* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with GNU Zebra; see the file COPYING. If not, write to the Free
- * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _QUAGGA_OSPF_VTY_H
int retv; \
retv = str2area_id((STR), &(V), &(F)); \
if (retv < 0) { \
- vty_out(vty, "%% Invalid OSPF area ID%s", \
- VTY_NEWLINE); \
+ vty_out(vty, "%% Invalid OSPF area ID\n"); \
return CMD_WARNING; \
} \
}
int retv; \
retv = str2area_id((STR), &(V), &(F)); \
if (retv < 0) { \
- vty_out(vty, "%% Invalid OSPF area ID%s", \
- VTY_NEWLINE); \
+ vty_out(vty, "%% Invalid OSPF area ID\n"); \
return CMD_WARNING; \
} \
if (OSPF_IS_AREA_ID_BACKBONE((V))) { \
vty_out(vty, \
- "%% You can't configure %s to backbone%s", \
- NAME, VTY_NEWLINE); \
+ "%% You can't configure %s to backbone\n", \
+ NAME); \
+ return CMD_WARNING; \
} \
}
extern void ospf_vty_show_init(void);
extern void ospf_vty_clear_init(void);
extern int str2area_id(const char *, struct in_addr *, int *);
-extern void area_id2str(char *, int, struct in_addr *, int);
#endif /* _QUAGGA_OSPF_VTY_H */