daemon.c (59064b8059b03780daea1b07a231f0b6e1a6d19d) daemon.c (ff3cc4a5378c2f681cc9b75cf54d154a12a3051e)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 2152 unchanged lines hidden (view full) ---

2161
2162 int tcp_flag = 0;
2163 struct option long_options[] = {
2164 { "tcp", no_argument, &tcp_flag, 1 },
2165 { "help", no_argument, 0, 0 },
2166 { 0,0,0,0 } // This is a filler for -1
2167 };
2168
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 2152 unchanged lines hidden (view full) ---

2161
2162 int tcp_flag = 0;
2163 struct option long_options[] = {
2164 { "tcp", no_argument, &tcp_flag, 1 },
2165 { "help", no_argument, 0, 0 },
2166 { 0,0,0,0 } // This is a filler for -1
2167 };
2168
2169 while (1) {
2169 while (true) {
2170 int c;
2171 int option_index = -1;
2172 c = getopt_long(argc, argv, "h", long_options, &option_index);
2173 if (c == -1) break; // no more option
2174
2175 // treat long parameter first
2176 if (option_index == -1) {
2177 switch (c) {

--- 32 unchanged lines hidden ---
2170 int c;
2171 int option_index = -1;
2172 c = getopt_long(argc, argv, "h", long_options, &option_index);
2173 if (c == -1) break; // no more option
2174
2175 // treat long parameter first
2176 if (option_index == -1) {
2177 switch (c) {

--- 32 unchanged lines hidden ---