]>
Commit | Line | Data |
---|---|---|
fa59b86f | 1 | /* $Id$ |
6565f81f | 2 | * |
3 | * Convert from GDSS error codes to com_err error codes | |
7ac48069 | 4 | * |
5 | * Copyright (C) 1987-1998 by the Massachusetts Institute of Technology | |
6 | * For copying and distribution information, please see the file | |
7 | * <mit-copyright.h>. | |
6565f81f | 8 | */ |
9 | ||
7ac48069 | 10 | #include <mit-copyright.h> |
11 | #include <moira.h> | |
12 | ||
6565f81f | 13 | #include <gdss_et.h> |
14 | ||
7ac48069 | 15 | RCSID("$Header$"); |
16 | ||
5eaef520 | 17 | int gdss2et(int code) |
6565f81f | 18 | { |
5eaef520 | 19 | if (code == 0) |
20 | return code; | |
21 | return ERROR_TABLE_BASE_gdss - code - 1; | |
6565f81f | 22 | } |