Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
epgsql
0003-Fix-if-OTP_RELEASE-was-missing-question-ma...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-Fix-if-OTP_RELEASE-was-missing-question-mark.patch of Package epgsql
From af4646317f55cdc7c369a0c9dc1514831982aa74 Mon Sep 17 00:00:00 2001 From: Sergey Prokhorov <seriy.pr@gmail.com> Date: Fri, 26 Feb 2021 01:15:13 +0100 Subject: [PATCH] Fix `-if(?OTP_RELEASE)` (was missing question mark) --- src/epgsql_scram.erl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/epgsql_scram.erl b/src/epgsql_scram.erl index afcbf97..08dc834 100644 --- a/src/epgsql_scram.erl +++ b/src/epgsql_scram.erl @@ -117,13 +117,13 @@ hi1(Str, U, Hi, I) -> hi1(Str, U2, Hi1, I - 1). -ifdef(OTP_RELEASE). --if(OTP_RELEASE >= 23). -hmac(Key, Str) -> - crypto:mac(hmac, sha256, Key, Str). --else. -hmac(Key, Str) -> - crypto:hmac(sha256, Key, Str). --endif. + -if(?OTP_RELEASE >= 23). + hmac(Key, Str) -> + crypto:mac(hmac, sha256, Key, Str). + -else. + hmac(Key, Str) -> + crypto:hmac(sha256, Key, Str). + -endif. -else. hmac(Key, Str) -> crypto:hmac(sha256, Key, Str). -- 2.31.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor