diff options
Diffstat (limited to 'unix2dos.c')
-rw-r--r-- | unix2dos.c | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -8,7 +8,7 @@ * See also http://www.freebsd.org/copyright/freebsd-license.html * -------- * - * Copyright (C) 2009-2013 Erwin Waterlander + * Copyright (C) 2009-2014 Erwin Waterlander * Copyright (C) 1994-1995 Benjamin Lin. * All rights reserved. * @@ -63,8 +63,8 @@ void PrintLicense(void) { - fprintf(stderr, "%s", _("\ -Copyright (C) 2009-2013 Erwin Waterlander\n\ + printf("%s", _("\ +Copyright (C) 2009-2014 Erwin Waterlander\n\ Copyright (C) 1994-1995 Benjamin Lin\n\ All rights reserved.\n\n")); PrintBSDLicense(); @@ -665,7 +665,7 @@ int ConvertUnixToDosNewFile(char *ipInFN, char *ipOutFN, CFlag *ipFlag, char *pr #ifndef NO_CHMOD if (!RetVal) { - if (ipFlag->NewFile == 0) /* old file mode */ + if (ipFlag->NewFile == 0) /* old-file mode */ { RetVal = chmod (TempPath, StatBuf.st_mode); /* set original permissions */ } @@ -690,9 +690,9 @@ int ConvertUnixToDosNewFile(char *ipInFN, char *ipOutFN, CFlag *ipFlag, char *pr #endif #ifndef NO_CHOWN - if (!RetVal && (ipFlag->NewFile == 0)) /* old file mode */ + if (!RetVal && (ipFlag->NewFile == 0)) /* old-file mode */ { - /* Change owner and group of the the tempory output file to the original file's uid and gid. */ + /* Change owner and group of the temporary output file to the original file's uid and gid. */ /* Required when a different user (e.g. root) has write permission on the original file. */ /* Make sure that the original owner can still access the file. */ if (chown(TempPath, StatBuf.st_uid, StatBuf.st_gid)) @@ -1059,7 +1059,7 @@ int main (int argc, char *argv[]) if (!CanSwitchFileMode) { fprintf(stderr,"%s: ",progname); - fprintf(stderr, _("target of file %s not specified in new file mode\n"), argv[ArgIdx-1]); + fprintf(stderr, _("target of file %s not specified in new-file mode\n"), argv[ArgIdx-1]); pFlag->error = 1; ShouldExit = 1; pFlag->stdio_mode = 0; @@ -1073,7 +1073,7 @@ int main (int argc, char *argv[]) if (!CanSwitchFileMode) { fprintf(stderr,"%s: ",progname); - fprintf(stderr, _("target of file %s not specified in new file mode\n"), argv[ArgIdx-1]); + fprintf(stderr, _("target of file %s not specified in new-file mode\n"), argv[ArgIdx-1]); pFlag->error = 1; ShouldExit = 1; pFlag->stdio_mode = 0; @@ -1166,9 +1166,9 @@ int main (int argc, char *argv[]) { fprintf(stderr,"%s: ",progname); if (pFlag->FromToMode == FROMTO_UNIX2MAC) - fprintf(stderr, _("converting file %s to file %s in Mac format ...\n"), argv[ArgIdx-1], argv[ArgIdx]); + fprintf(stderr, _("converting file %s to file %s in Mac format...\n"), argv[ArgIdx-1], argv[ArgIdx]); else - fprintf(stderr, _("converting file %s to file %s in DOS format ...\n"), argv[ArgIdx-1], argv[ArgIdx]); + fprintf(stderr, _("converting file %s to file %s in DOS format...\n"), argv[ArgIdx-1], argv[ArgIdx]); } if (RetVal) { @@ -1246,9 +1246,9 @@ int main (int argc, char *argv[]) { fprintf(stderr,"%s: ",progname); if (pFlag->FromToMode == FROMTO_UNIX2MAC) - fprintf(stderr, _("converting file %s to Mac format ...\n"), argv[ArgIdx]); + fprintf(stderr, _("converting file %s to Mac format...\n"), argv[ArgIdx]); else - fprintf(stderr, _("converting file %s to DOS format ...\n"), argv[ArgIdx]); + fprintf(stderr, _("converting file %s to DOS format...\n"), argv[ArgIdx]); } if (RetVal) { @@ -1273,7 +1273,7 @@ int main (int argc, char *argv[]) if (!CanSwitchFileMode) { fprintf(stderr,"%s: ",progname); - fprintf(stderr, _("target of file %s not specified in new file mode\n"), argv[ArgIdx-1]); + fprintf(stderr, _("target of file %s not specified in new-file mode\n"), argv[ArgIdx-1]); pFlag->error = 1; } return (pFlag->error); |