summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-02-16 01:01:48 +0200
committerHans Rosenfeld <hans.rosenfeld@joyent.com>2017-05-17 13:16:18 +0200
commit518f6e4f50f2a38cdf2a69027ed68c13a855adca (patch)
treeedf67228aa2ecdb1e3f964dda3c7ad6d7acb0d1c
parente84991e7a6961ecb29c2a0dc65de15aba7e0a171 (diff)
downloadillumos-joyent-518f6e4f50f2a38cdf2a69027ed68c13a855adca.tar.gz
8197 bnu: misleading-indentation
Reviewed by: Marcel Telka <marcel@telka.sk> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
-rw-r--r--usr/src/cmd/bnu/cntrl.c8
-rw-r--r--usr/src/cmd/bnu/gnxseq.c39
2 files changed, 20 insertions, 27 deletions
diff --git a/usr/src/cmd/bnu/cntrl.c b/usr/src/cmd/bnu/cntrl.c
index 8d3f1da9cc..50b968cde4 100644
--- a/usr/src/cmd/bnu/cntrl.c
+++ b/usr/src/cmd/bnu/cntrl.c
@@ -28,8 +28,6 @@
/* All Rights Reserved */
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "uucp.h"
#include "log.h"
@@ -1152,9 +1150,9 @@ process:
putinpub(filename, Dfile, W_USER);
}
pfEndfile(""); /* "" indicates the file transfer completely */
- if ( W_FILE2[1] == '.' &&
- (W_FILE2[0] == XQTPRE || W_FILE2[0] == DATAPRE) )
- uuxqtflag = 1;
+ if ( W_FILE2[1] == '.' &&
+ (W_FILE2[0] == XQTPRE || W_FILE2[0] == DATAPRE) )
+ uuxqtflag = 1;
goto top;
}
diff --git a/usr/src/cmd/bnu/gnxseq.c b/usr/src/cmd/bnu/gnxseq.c
index c7ab630692..da9656b090 100644
--- a/usr/src/cmd/bnu/gnxseq.c
+++ b/usr/src/cmd/bnu/gnxseq.c
@@ -22,9 +22,6 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
-
-#ident "%Z%%M% %I% %E% SMI" /* from SVR4 bnu:gnxseq.c 2.5 */
-
#include "uucp.h"
/*
@@ -35,8 +32,7 @@
* 1 -> 0 sequence number
*/
int
-gnxseq(rmtname)
-char *rmtname;
+gnxseq(char *rmtname)
{
register FILE *fp0, *fp1;
register struct tm *tp;
@@ -45,25 +41,25 @@ char *rmtname;
time_t clock;
if (access(SQFILE, 0) != 0)
- return(0);
+ return (0);
{
- register int i;
- for (i = 0; i < 5; i++)
- if ( (ret = mklock(SQLOCK)) == SUCCESS )
- break;
+ int i;
+ for (i = 0; i < 5; i++)
+ if ((ret = mklock(SQLOCK)) == SUCCESS)
+ break;
sleep(5);
}
if (ret != SUCCESS) {
logent("CAN'T LOCK", SQLOCK);
DEBUG(4, "can't lock %s\n", SQLOCK);
- return(0);
+ return (0);
}
if ((fp0 = fopen(SQFILE, "r")) == NULL)
- return(0);
+ return (0);
if ((fp1 = fopen(SQTMP, "w")) == NULL) {
fclose(fp0);
- return(0);
+ return (0);
}
chmod(SQTMP, DFILEMODE);
@@ -86,8 +82,8 @@ char *rmtname;
time(&clock);
tp = localtime(&clock);
fprintf(fp1, "%s %d %d/%d-%d:%2.2d\n", name, ct,
- tp->tm_mon + 1, tp->tm_mday, tp->tm_hour,
- tp->tm_min);
+ tp->tm_mon + 1, tp->tm_mday, tp->tm_hour,
+ tp->tm_min);
/*
* write should be checked
@@ -101,7 +97,7 @@ char *rmtname;
rmlock(SQLOCK);
unlink(SQTMP);
}
- return(count);
+ return (count);
}
/*
@@ -111,28 +107,27 @@ char *rmtname;
* other -> link failed
*/
int
-cmtseq()
+cmtseq(void)
{
- register int ret;
+ int ret;
if ((ret = access(SQTMP, 0)) != 0) {
rmlock(SQLOCK);
- return(0);
+ return (0);
}
unlink(SQFILE);
ret = link(SQTMP, SQFILE);
unlink(SQTMP);
rmlock(SQLOCK);
- return(ret);
+ return (ret);
}
/*
* unlock sequence file
*/
void
-ulkseq()
+ulkseq(void)
{
unlink(SQTMP);
rmlock(SQLOCK);
- return;
}