diff options
author | jkh <jkh@FreeBSD.org> | 1996-06-17 21:48:33 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-06-17 21:48:33 +0000 |
commit | a2bb2b476e1128fb5b0bd7bb1894f9ccbd96d751 (patch) | |
tree | d7f069af161fed62d57b0408f72958b9b8d05b0d /usr.sbin/sade | |
parent | 257dcecd299fb32452b70b4e78fcd722579e97d0 (diff) | |
download | FreeBSD-src-a2bb2b476e1128fb5b0bd7bb1894f9ccbd96d751.zip FreeBSD-src-a2bb2b476e1128fb5b0bd7bb1894f9ccbd96d751.tar.gz |
Init network at proper time.
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r-- | usr.sbin/sade/misc.c | 12 | ||||
-rw-r--r-- | usr.sbin/sade/sade.h | 4 |
2 files changed, 14 insertions, 2 deletions
diff --git a/usr.sbin/sade/misc.c b/usr.sbin/sade/misc.c index 3f84540..559990a 100644 --- a/usr.sbin/sade/misc.c +++ b/usr.sbin/sade/misc.c @@ -1,7 +1,7 @@ /* * Miscellaneous support routines.. * - * $Id: misc.c,v 1.17 1996/04/23 01:29:29 jkh Exp $ + * $Id: misc.c,v 1.18 1996/04/28 03:27:21 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -122,6 +122,16 @@ string_copy(char *s1, char *s2) return s1; } +/* convert an integer to a string, using a static buffer */ +char * +itoa(int value) +{ + static char buf[13]; + + snprintf(buf, 12, "%d", value); + return buf; +} + Boolean directory_exists(const char *dirname) { diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h index f6988d5..6905168 100644 --- a/usr.sbin/sade/sade.h +++ b/usr.sbin/sade/sade.h @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated to essentially a complete rewrite. * - * $Id: sysinstall.h,v 1.62 1996/06/16 21:57:35 jkh Exp $ + * $Id: sysinstall.h,v 1.63 1996/06/16 23:17:35 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -95,6 +95,7 @@ #define VAR_FTP_ONERROR "ftpOnError" #define VAR_FTP_PASS "ftpPass" #define VAR_FTP_PATH "ftp" +#define VAR_FTP_PORT "ftpPort" #define VAR_FTP_RETRIES "ftpRetryCount" #define VAR_FTP_STATE "ftpState" #define VAR_FTP_USER "ftpUser" @@ -520,6 +521,7 @@ extern Boolean mediaVerify(void); extern Boolean file_readable(char *fname); extern Boolean file_executable(char *fname); extern Boolean directory_exists(const char *dirname); +extern char *itoa(int value); extern char *string_concat(char *p1, char *p2); extern char *string_concat3(char *p1, char *p2, char *p3); extern char *string_prune(char *str); |