* complete copyright information.
*/
-#include <h/mh.h>
-#include <h/aliasbr.h>
-#include <h/addrsbr.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "sbr/concat.h"
+#include "sbr/vfgets.h"
+#include "sbr/getcpy.h"
+#include "h/aliasbr.h"
+#include "h/addrsbr.h"
+#include "h/utils.h"
#include <pwd.h>
static int akvis;
aliasent++;
}
- return (*aliasent == 0 || *aliasent == '*');
+ return *aliasent == 0 || *aliasent == '*';
}
while (vfgets (fp, &ap) == OK) {
bp = ap;
switch (*(pp = scanp (bp))) {
- case '<': /* recurse a level */
+ case '<': /* recurse a level */
if (!*(cp = getp (pp + 1))) {
akerrst = "'<' without alias-file";
fclose (fp);
return i;
}
continue;
- case ':': /* comment */
- case ';':
+ case ':': /* comment */
+ case ';':
case '#':
case 0:
continue;
}
switch (*(pp = scanp (ap))) {
- case 0: /* EOL */
+ case 0: /* EOL */
fclose (fp);
return AK_ERROR;
- case '<': /* read values from file */
+ case '<': /* read values from file */
if (!*(cp = getp (pp + 1))) {
fclose (fp);
return AK_ERROR;
}
break;
- default: /* list */
+ default: /* list */
while ((cp = getalias (pp)))
add_aka (ak, cp);
break;
if (cp == NULL)
cp = addrs;
else if (*cp == 0)
- return (cp = NULL);
+ return cp = NULL;
/* Remove leading any space from the address. */
for (pp = cp; isspace ((unsigned char) *pp); pp++)
continue;
if (*pp == 0)
- return (cp = NULL);
+ return cp = NULL;
/* Find the end of the address. */
for (qp = pp; *qp != 0 && *qp != ','; qp++)
continue;