Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ftpd use LLT and STRTOLL() instead of off_t and strt...
details: https://anonhg.NetBSD.org/src/rev/80ae878c242a
branches: trunk
changeset: 543399:80ae878c242a
user: lukem <lukem%NetBSD.org@localhost>
date: Mon Feb 24 12:57:06 2003 +0000
description:
use LLT and STRTOLL() instead of off_t and strtoull() for parsing the
"larger than int" arguments from commands. improves portability.
diffstat:
libexec/ftpd/ftpcmd.y | 10 +++++-----
libexec/ftpd/version.h | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (61 lines):
diff -r 5e8093947a2f -r 80ae878c242a libexec/ftpd/ftpcmd.y
--- a/libexec/ftpd/ftpcmd.y Mon Feb 24 11:18:03 2003 +0000
+++ b/libexec/ftpd/ftpcmd.y Mon Feb 24 12:57:06 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ftpcmd.y,v 1.73 2003/01/22 04:33:35 lukem Exp $ */
+/* $NetBSD: ftpcmd.y,v 1.74 2003/02/24 12:57:06 lukem Exp $ */
/*-
* Copyright (c) 1997-2002 The NetBSD Foundation, Inc.
@@ -83,7 +83,7 @@
#if 0
static char sccsid[] = "@(#)ftpcmd.y 8.3 (Berkeley) 4/6/94";
#else
-__RCSID("$NetBSD: ftpcmd.y,v 1.73 2003/01/22 04:33:35 lukem Exp $");
+__RCSID("$NetBSD: ftpcmd.y,v 1.74 2003/02/24 12:57:06 lukem Exp $");
#endif
#endif /* not lint */
@@ -128,7 +128,7 @@
%union {
struct {
- off_t o;
+ LLT ll;
int i;
} u;
char *s;
@@ -884,7 +884,7 @@
{
if ($2) {
fromname = NULL;
- restart_point = $4.o;
+ restart_point = (off_t)$4.ll;
reply(350,
"Restarting at " LLF ". Send STORE or RETRIEVE to initiate transfer.",
(LLT)restart_point);
@@ -1626,7 +1626,7 @@
c = cmdp[cpos];
cmdp[cpos] = '\0';
yylval.u.i = atoi(cp);
- yylval.u.o = strtoull(cp, (char **)NULL, 10);
+ yylval.u.ll = STRTOLL(cp, (char **)NULL, 10);
cmdp[cpos] = c;
return (NUMBER);
}
diff -r 5e8093947a2f -r 80ae878c242a libexec/ftpd/version.h
--- a/libexec/ftpd/version.h Mon Feb 24 11:18:03 2003 +0000
+++ b/libexec/ftpd/version.h Mon Feb 24 12:57:06 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: version.h,v 1.52 2003/02/23 13:04:37 lukem Exp $ */
+/* $NetBSD: version.h,v 1.53 2003/02/24 12:57:06 lukem Exp $ */
/*-
* Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -36,5 +36,5 @@
*/
#ifndef FTPD_VERSION
-#define FTPD_VERSION "NetBSD-ftpd 20030223"
+#define FTPD_VERSION "NetBSD-ftpd 20030224"
#endif
Home |
Main Index |
Thread Index |
Old Index