/* This file is part of the Project Athena Global Message System. * Created by: Mark W. Eichin * $Source: /afs/dev.mit.edu/source/repository/athena/bin/gms/hesiod_errors.c,v $ * $Author: eichin $ * * Copyright (c) 1988 by the Massachusetts Institute of Technology. * For copying and distribution information, see the file * "mit-copyright.h". */ #include #ifndef lint static char rcsid_hes_errors_c[] = "$Header: /afs/dev.mit.edu/source/repository/athena/bin/gms/hesiod_errors.c,v 1.2 1988-09-26 15:31:17 eichin Exp $"; #endif lint #include "hesiod_err.h" #include typedef int Code_t; Code_t hesiod_error() { init_hes_err_tbl(); switch(hes_error()) { case HES_ER_UNINIT: return(HESIOD_ER_UNINIT); case HES_ER_NOTFOUND: return(HESIOD_ER_NOTFOUND); case HES_ER_CONFIG: return(HESIOD_ER_CONFIG); case HES_ER_NET: return(HESIOD_ER_NET); case HES_ER_OK: return(HESIOD_ER_OK); default: return(HESIOD_ER_INVALID); } }