summaryrefslogtreecommitdiffstats
path: root/srs.c
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-08-07 04:54:03 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-08-07 04:58:54 +0200
commitad04bd6011483f1072f0ac209184f55bdb6d36e2 (patch)
tree84d5d542497ca58c334adf5474ca1c3458222f92 /srs.c
parent181d3e2a85dff24552a29a0cecbca9ac78cba5b7 (diff)
downloadhardware_replicant_libsamsung-ril-ad04bd6011483f1072f0ac209184f55bdb6d36e2.tar.gz
hardware_replicant_libsamsung-ril-ad04bd6011483f1072f0ac209184f55bdb6d36e2.tar.bz2
hardware_replicant_libsamsung-ril-ad04bd6011483f1072f0ac209184f55bdb6d36e2.zip
srs: reorder includes
- The includes were ordered alphabetically - #include "" is prefered over #incude <> for files relative to a given project[1] (here libsamsung-ril). References: ----------- [1]In the C standard[2], the difference of behavior of between #include <> and #include "" is implementation-defined[2]. And The GCC documentation[3] says that #include "" "is used for header files of your own program.". [2]The standard doesn't seem to be available for free, but the draft can be downloaded from the following URL: https://web.archive.org/web/20181230041359if_/http://www.open-std.org/jtc1/sc22/wg14/www/abq/c17_updated_proposed_fdis.pdf [3]https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'srs.c')
-rw-r--r--srs.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/srs.c b/srs.c
index 4a11564..1f6c320 100644
--- a/srs.c
+++ b/srs.c
@@ -17,26 +17,27 @@
* along with Samsung-RIL. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
+#include <stdlib.h>
+
+#include <sys/eventfd.h>
+#include <sys/select.h>
+#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
-#include <sys/socket.h>
#include <sys/un.h>
-#include <sys/select.h>
-#include <sys/eventfd.h>
#include <arpa/inet.h>
-#include <netinet/in.h>
#include <cutils/sockets.h>
+#include <netinet/in.h>
#define LOG_TAG "RIL-SRS"
#include <utils/Log.h>
#include <hardware_legacy/power.h>
-#include <samsung-ril.h>
-#include <utils.h>
+#include "samsung-ril.h"
+#include "utils.h"
/*
* Utils