summaryrefslogtreecommitdiff
path: root/contrib/isn
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/isn')
-rw-r--r--contrib/isn/isn.c14
-rw-r--r--contrib/isn/isn.h2
2 files changed, 8 insertions, 8 deletions
diff --git a/contrib/isn/isn.c b/contrib/isn/isn.c
index c3c10e14bca..d018ec6af5b 100644
--- a/contrib/isn/isn.c
+++ b/contrib/isn/isn.c
@@ -131,7 +131,7 @@ invalidindex:
elog(DEBUG1, "index %d is invalid", j);
return false;
}
-#endif /* ISN_DEBUG */
+#endif /* ISN_DEBUG */
/*----------------------------------------------------------
* Formatting and conversion routines.
@@ -699,11 +699,11 @@ string2ean(const char *str, bool errorOK, ean13 *result,
/* recognize and validate the number: */
while (*aux2 && length <= 13)
{
- last = (*(aux2 + 1) == '!' || *(aux2 + 1) == '\0'); /* is the last character */
+ last = (*(aux2 + 1) == '!' || *(aux2 + 1) == '\0'); /* is the last character */
digit = (isdigit((unsigned char) *aux2) != 0); /* is current character
* a digit? */
- if (*aux2 == '?' && last) /* automagically calculate check digit
- * if it's '?' */
+ if (*aux2 == '?' && last) /* automagically calculate check digit if
+ * it's '?' */
magic = digit = true;
if (length == 0 && (*aux2 == 'M' || *aux2 == 'm'))
{
@@ -832,8 +832,8 @@ string2ean(const char *str, bool errorOK, ean13 *result,
goto eanwrongtype;
break;
case ISMN:
- memcpy(buf, "9790", 4); /* this isn't for sure yet, for now
- * ISMN it's only 9790 */
+ memcpy(buf, "9790", 4); /* this isn't for sure yet, for now ISMN
+ * it's only 9790 */
valid = (valid && ((rcheck = checkdig(buf, 13)) == check || magic));
break;
case ISBN:
@@ -1123,7 +1123,7 @@ accept_weak_input(PG_FUNCTION_ARGS)
g_weak = PG_GETARG_BOOL(0);
#else
/* function has no effect */
-#endif /* ISN_WEAK_MODE */
+#endif /* ISN_WEAK_MODE */
PG_RETURN_BOOL(g_weak);
}
diff --git a/contrib/isn/isn.h b/contrib/isn/isn.h
index 09dc7c65759..e2c8a262346 100644
--- a/contrib/isn/isn.h
+++ b/contrib/isn/isn.h
@@ -32,4 +32,4 @@ typedef uint64 ean13;
extern void initialize(void);
-#endif /* ISN_H */
+#endif /* ISN_H */