Skip to content

Commit

Permalink
Properly rename header guards according to C++ standard
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Sep 12, 2014
1 parent e72f2f7 commit b7976d2
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef __CLIENT_H__
#define __CLIENT_H__
#ifndef CLIENT_H
#define CLIENT_H

#include <stdint.h>
#include "usbmuxd-proto.h"
Expand Down
4 changes: 2 additions & 2 deletions src/conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef __CONF_H__
#define __CONF_H__
#ifndef CONF_H
#define CONF_H

#ifdef HAVE_CONFIG_H
#include <config.h>
Expand Down
5 changes: 3 additions & 2 deletions src/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef __DEVICE_H__
#define __DEVICE_H__
#ifndef DEVICE_H
#define DEVICE_H

#include "usb.h"
#include "client.h"
Expand Down Expand Up @@ -52,4 +52,5 @@ void device_check_timeouts(void);
void device_init(void);
void device_kill_connections(void);
void device_shutdown(void);

#endif
5 changes: 2 additions & 3 deletions src/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef __LOG_H__
#define __LOG_H__
#ifndef LOG_H
#define LOG_H

enum loglevel {
LL_FATAL = 0,
Expand All @@ -40,5 +40,4 @@ void log_disable_syslog();

void usbmuxd_log(enum loglevel level, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));


#endif
4 changes: 2 additions & 2 deletions src/preflight.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef __PREFLIGHT_H__
#define __PREFLIGHT_H__
#ifndef PREFLIGHT_H
#define PREFLIGHT_H

#include "device.h"

Expand Down
4 changes: 2 additions & 2 deletions src/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef __USB_H__
#define __USB_H__
#ifndef USB_H
#define USB_H

#include <stdint.h>
#include "utils.h"
Expand Down
6 changes: 3 additions & 3 deletions src/usbmuxd-proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

/* Protocol defintion for usbmuxd proxy protocol */
#ifndef __USBMUXD_PROTO_H
#define __USBMUXD_PROTO_H
#ifndef USBMUXD_PROTO_H
#define USBMUXD_PROTO_H

#include <stdint.h>
#define USBMUXD_PROTOCOL_VERSION 0
Expand Down Expand Up @@ -93,4 +93,4 @@ struct usbmuxd_device_record {
}
#endif

#endif /* __USBMUXD_PROTO_H */
#endif /* USBMUXD_PROTO_H */
4 changes: 2 additions & 2 deletions src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef __UTILS_H__
#define __UTILS_H__
#ifndef UTILS_H
#define UTILS_H

#include <poll.h>
#include <plist/plist.h>
Expand Down

0 comments on commit b7976d2

Please sign in to comment.