summaryrefslogtreecommitdiff
path: root/usr.bin/dc
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/dc')
-rw-r--r--usr.bin/dc/bcode.c10
-rw-r--r--usr.bin/dc/stack.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/usr.bin/dc/bcode.c b/usr.bin/dc/bcode.c
index e57f2ec9b95..d863ef131a7 100644
--- a/usr.bin/dc/bcode.c
+++ b/usr.bin/dc/bcode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bcode.c,v 1.27 2005/03/27 17:50:55 otto Exp $ */
+/* $OpenBSD: bcode.c,v 1.28 2005/03/28 17:39:20 deraadt Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -17,7 +17,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: bcode.c,v 1.27 2005/03/27 17:50:55 otto Exp $";
+static const char rcsid[] = "$OpenBSD: bcode.c,v 1.28 2005/03/28 17:39:20 deraadt Exp $";
#endif /* not lint */
#include <ssl/ssl.h>
@@ -307,7 +307,7 @@ src_free(void)
#ifdef DEBUGGING
void
-pn(const char * str, const struct number *n)
+pn(const char *str, const struct number *n)
{
char *p = BN_bn2dec(n->number);
if (p == NULL)
@@ -318,7 +318,7 @@ pn(const char * str, const struct number *n)
}
void
-pbn(const char * str, const BIGNUM *n)
+pbn(const char *str, const BIGNUM *n)
{
char *p = BN_bn2dec(n);
if (p == NULL)
@@ -1190,7 +1190,7 @@ bexp(void)
negate(p);
scale = bmachine.scale;
} else {
- /* Posix bc says min(a.scale * b, max(a.scale, scale) */
+ /* Posix bc says min(a.scale *b, max(a.scale, scale) */
u_long b;
u_int m;
diff --git a/usr.bin/dc/stack.c b/usr.bin/dc/stack.c
index 4dbb2a34e25..eecb035b9db 100644
--- a/usr.bin/dc/stack.c
+++ b/usr.bin/dc/stack.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stack.c,v 1.6 2003/11/26 19:30:52 otto Exp $ */
+/* $OpenBSD: stack.c,v 1.7 2005/03/28 17:39:20 deraadt Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -17,7 +17,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: stack.c,v 1.6 2003/11/26 19:30:52 otto Exp $";
+static const char rcsid[] = "$OpenBSD: stack.c,v 1.7 2005/03/28 17:39:20 deraadt Exp $";
#endif /* not lint */
#include <err.h>
@@ -44,7 +44,7 @@ stack_init(struct stack *stack)
}
static __inline bool
-stack_empty(const struct stack * stack)
+stack_empty(const struct stack *stack)
{
bool empty = stack->sp == -1;
if (empty)
@@ -97,7 +97,7 @@ stack_dup_value(const struct value *a, struct value *copy)
}
int
-stack_size(const struct stack * stack)
+stack_size(const struct stack *stack)
{
return stack->sp + 1;
}
@@ -197,7 +197,7 @@ stack_set_tos(struct stack *stack, struct value *v)
stack_free_value(&stack->stack[stack->sp]);
stack->stack[stack->sp] = *v;
stack->stack[stack->sp].array = v->array == NULL ?
- NULL : array_dup(v->array);
+ NULL : array_dup(v->array);
}
}