diff options
author | Guido Guenther <agx@sigxcpu.org> | 2007-11-21 16:55:40 +0100 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2007-11-21 16:55:40 +0100 |
commit | 498267851d48ee60376dc96411fb8693a5e95a3c (patch) | |
tree | 9f1533b742a37b5213dc651e84aff9401df7e640 /e2fslib/et/init_et.c | |
parent | 4bf1c0b76bed01bd30c28a089639b88d326ba2c3 (diff) |
remove unneeded e2fslib
Diffstat (limited to 'e2fslib/et/init_et.c')
-rw-r--r-- | e2fslib/et/init_et.c | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/e2fslib/et/init_et.c b/e2fslib/et/init_et.c deleted file mode 100644 index bfdb73d..0000000 --- a/e2fslib/et/init_et.c +++ /dev/null @@ -1,63 +0,0 @@ -/* - * $ Header: lib/et/SCCS/s.init_et.c 1.15 99/10/23 01:16:06-00:00 tytso@mit.edu $ - * $ Source: /usr/src/e2fsprogs/BK/e2fsprogs/lib/et/SCCS/s.init_et.c $ - * $ Locker: <Not implemented> $ - * - * Copyright 1986, 1987, 1988 by MIT Information Systems and - * the MIT Student Information Processing Board. - * - * Permission to use, copy, modify, and distribute this software and - * its documentation for any purpose is hereby granted, provided that - * the names of M.I.T. and the M.I.T. S.I.P.B. not be used in - * advertising or publicity pertaining to distribution of the software - * without specific, written prior permission. M.I.T. and the - * M.I.T. S.I.P.B. make no representations about the suitability of - * this software for any purpose. It is provided "as is" without - * express or implied warranty. - */ - -#include <stdio.h> -#include <errno.h> -#ifdef HAVE_STDLIB_H -#include <stdlib.h> -#endif -#include "com_err.h" -#include "error_table.h" - -#ifndef __STDC__ -#define const -#endif - -struct foobar { - struct et_list etl; - struct error_table et; -}; - -extern struct et_list * _et_list; - -#ifdef __STDC__ -int init_error_table(const char * const *msgs, int base, int count) -#else -int init_error_table(msgs, base, count) - const char * const * msgs; - int base; - int count; -#endif -{ - struct foobar * new_et; - - if (!base || !count || !msgs) - return 0; - - new_et = (struct foobar *) malloc(sizeof(struct foobar)); - if (!new_et) - return ENOMEM; /* oops */ - new_et->etl.table = &new_et->et; - new_et->et.msgs = msgs; - new_et->et.base = base; - new_et->et.n_msgs= count; - - new_et->etl.next = _et_list; - _et_list = &new_et->etl; - return 0; -} |