Skip to content

Commit

Permalink
Fix reserved identifier violations
Browse files Browse the repository at this point in the history
No functional change intended

(cherry picked from commit b404a66)
  • Loading branch information
DemiMarie authored and marmarek committed May 12, 2023
1 parent b6a5c65 commit c5ab6cb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions agent/qrexec-agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include "libqrexec-utils.h"
#include "qrexec-agent.h"

struct _connection_info {
struct connection_info {
int pid; /* pid of child process handling the data */
int fd; /* socket to the process handling the data (wait for EOF here) */
int connect_domain;
Expand All @@ -56,7 +56,7 @@ struct _connection_info {

/* structure describing a single request waiting for qubes.WaitForSession to
* finish */
struct _waiting_request {
struct waiting_request {
int type;
int connect_domain;
int connect_port;
Expand All @@ -65,9 +65,9 @@ struct _waiting_request {
};

/* */
static struct _connection_info connection_info[MAX_FDS];
static struct connection_info connection_info[MAX_FDS];

static struct _waiting_request requests_waiting_for_session[MAX_FDS];
static struct waiting_request requests_waiting_for_session[MAX_FDS];

static libvchan_t *ctrl_vchan;

Expand Down
6 changes: 3 additions & 3 deletions libqrexec/libqrexec-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
*
*/

#ifndef _LIBQREXEC_UTILS_H
#define _LIBQREXEC_UTILS_H
#ifndef LIBQREXEC_UTILS_H
#define LIBQREXEC_UTILS_H

#define _POSIX_C_SOURCE 200809L
#define _GNU_SOURCE 1
Expand Down Expand Up @@ -279,4 +279,4 @@ void qrexec_log(int level, int errnoval, const char *file, int line,

void setup_logging(const char *program_name);

#endif /* _LIBQREXEC_UTILS_H */
#endif /* LIBQREXEC_UTILS_H */
6 changes: 3 additions & 3 deletions libqrexec/qrexec.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*
*/

#ifndef _QREXEC_H
#define _QREXEC_H
#ifndef QREXEC_H
#define QREXEC_H

/* For information on qrexec, see:
* - https://www.qubes-os.org/doc/qrexec/
Expand Down Expand Up @@ -173,4 +173,4 @@ enum {
// support only very small configuration files,
#define MAX_CONFIG_SIZE 4096

#endif /* _QREXEC_H */
#endif /* QREXEC_H */

0 comments on commit c5ab6cb

Please sign in to comment.