diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-04-30 15:17:40 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-04-30 15:17:40 -0700 |
commit | 348b9a46086ad72d6f29f2637036accff6630db4 (patch) | |
tree | f84f75def9a124eba9b4d519cdc7adeaef07e2aa | |
parent | d70c666549a9ee17de7349904529cf41bf023926 (diff) |
ProcessAuthReply: rename status variable to avoid shadowing
Fixes gcc complaint:
process.c: In function ‘ProcessAuthReply’:
process.c:1478:20: warning: declaration of ‘status’ shadows a previous local [-Wshadow]
1478 | Status status = 1;
| ^~~~~~
process.c:1426:25: note: shadowed declaration is here
1426 | IcePaAuthStatus status =
| ^~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c index 3cfc288..0fdd92b 100644 --- a/src/process.c +++ b/src/process.c @@ -1475,7 +1475,7 @@ ProcessAuthReply ( _IceProcessMsgInfo *process_msg_info; IcePointer clientData = NULL; char *failureReason = NULL; - Status status = 1; + Status setupStatus = 1; protocolSetupProc = myProtocol->protocol_setup_proc; protocolActivateProc = myProtocol->protocol_activate_proc; @@ -1486,7 +1486,7 @@ ProcessAuthReply ( * Notify the client of the Protocol Setup. */ - status = (*protocolSetupProc) (iceConn, + setupStatus = (*protocolSetupProc) (iceConn, myProtocol->version_recs[iceConn->protosetup_to_me-> my_version_index].major_version, myProtocol->version_recs[iceConn->protosetup_to_me-> @@ -1505,7 +1505,7 @@ ProcessAuthReply ( iceConn->protosetup_to_me->his_release = NULL; } - if (status != 0) + if (setupStatus != 0) { /* * Send the Protocol Reply |