version 1.238, 2013/05/16 10:44:06 |
version 1.239, 2013/05/17 00:13:14 |
|
|
if (getcwd(cwd, sizeof(cwd)) == NULL) |
if (getcwd(cwd, sizeof(cwd)) == NULL) |
fatal("%s: getcwd: %s", __func__, strerror(errno)); |
fatal("%s: getcwd: %s", __func__, strerror(errno)); |
xasprintf(&ret, "%s/%s", cwd, expanded); |
xasprintf(&ret, "%s/%s", cwd, expanded); |
xfree(expanded); |
free(expanded); |
return ret; |
return ret; |
} |
} |
|
|
|
|
} while (0) |
} while (0) |
#define M_CP_STROPT(n) do {\ |
#define M_CP_STROPT(n) do {\ |
if (src->n != NULL) { \ |
if (src->n != NULL) { \ |
if (dst->n != NULL) \ |
free(dst->n); \ |
xfree(dst->n); \ |
|
dst->n = src->n; \ |
dst->n = src->n; \ |
} \ |
} \ |
} while(0) |
} while(0) |
|
|
linenum++, &active, connectinfo) != 0) |
linenum++, &active, connectinfo) != 0) |
bad_options++; |
bad_options++; |
} |
} |
xfree(obuf); |
free(obuf); |
if (bad_options > 0) |
if (bad_options > 0) |
fatal("%s: terminating, %d bad configuration options", |
fatal("%s: terminating, %d bad configuration options", |
filename, bad_options); |
filename, bad_options); |