X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Futils.c;h=5c5b0f5149a01dfd19cf1044e9b799acbb0b26b9;hb=b6d09bd20c57ba338690651d5922c724568bc7a0;hp=641a75db6006de715d4cd82b49d91afbbaa170e2;hpb=0bfc482371bf63c4c312c749ba0bfc50483772ba;p=mmh diff --git a/sbr/utils.c b/sbr/utils.c index 641a75d..5c5b0f5 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -216,19 +216,3 @@ app_msgarg(struct msgs_array *msgs, char *cp) (msgs->max+=MAXMSGS)*sizeof(*msgs->msgs)); msgs->msgs[msgs->size++] = cp; } - -/* Open a form or components file */ -int -open_form(char **form, char *def) -{ - int in; - if (*form) { - if ((in = open(etcpath(*form), O_RDONLY)) == NOTOK) - adios(*form, "unable to open form file"); - } else { - if ((in = open(etcpath(def), O_RDONLY)) == NOTOK) - adios(def, "unable to open default components file"); - *form = def; - } - return in; -}