uudecode follow-up
This commit is contained in:
@@ -41,6 +41,8 @@
|
|||||||
* Modified 08 July 2006 to cast strlen() result to int to suppress a
|
* Modified 08 July 2006 to cast strlen() result to int to suppress a
|
||||||
* warning on platforms where size_t > sizeof(int).
|
* warning on platforms where size_t > sizeof(int).
|
||||||
*
|
*
|
||||||
|
* Modified 05 Jan 2024 to avoid K&R function declarations, marked KR_PROTO.
|
||||||
|
*
|
||||||
* $NHDT-Date: 1432512787 2015/05/25 00:13:07 $ $NHDT-Branch: master $:$NHDT-Revision: 1.7 $
|
* $NHDT-Date: 1432512787 2015/05/25 00:13:07 $ $NHDT-Branch: master $:$NHDT-Revision: 1.7 $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -128,13 +130,16 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
(void) sscanf(buf, "begin %o %s", &mode, dest);
|
(void) sscanf(buf, "begin %o %s", &mode, dest);
|
||||||
|
|
||||||
#if !defined(MSDOS) && !defined(VMS) && !defined(WIN32) && !defined(__APPLE__) && !defined(__linux__)
|
#if !defined(MSDOS) && !defined(VMS) && !defined(WIN32) && !defined(__APPLE__)
|
||||||
/* handle ~user/file format */
|
/* handle ~user/file format */
|
||||||
if (dest[0] == '~') {
|
if (dest[0] == '~') {
|
||||||
char *sl;
|
char *sl;
|
||||||
struct passwd *getpwnam();
|
|
||||||
struct passwd *user;
|
struct passwd *user;
|
||||||
char dnbuf[100], *strchr(), *strcat(), *strcpy();
|
char dnbuf[100];
|
||||||
|
#ifdef KR_PROTO
|
||||||
|
struct passwd *getpwnam();
|
||||||
|
char *strchr(), *strcat(), *strcpy();
|
||||||
|
#endif
|
||||||
|
|
||||||
sl = strchr(dest, '/');
|
sl = strchr(dest, '/');
|
||||||
if (sl == NULL) {
|
if (sl == NULL) {
|
||||||
@@ -238,7 +243,6 @@ outdec(char *p, FILE *f, int n)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(MSDOS) && !defined(VMS) && !defined(WIN32) && !defined(__APPLE__) && !defined(__linux__)
|
#if !defined(MSDOS) && !defined(VMS) && !defined(WIN32) && !defined(__APPLE__) && !defined(__linux__)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return the ptr in sp at which the character c appears;
|
* Return the ptr in sp at which the character c appears;
|
||||||
* NULL if not found
|
* NULL if not found
|
||||||
|
|||||||
Reference in New Issue
Block a user