WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ SPDX-License-Identifier: AGPL3.0-or-later
*/
/**
#endif
if ( (GNUNET_YES != abstract) &&
(GNUNET_OK !=
- GNUNET_DISK_directory_create_for_file (unixpath)) )
+ GNUNET_DISK_directory_create_for_file (unixpath)) )
GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR,
"mkdir",
unixpath);
check_start (void *cls,
const struct GNUNET_ARM_Message *amsg)
{
- uint16_t size;
- const char *servicename;
-
(void) cls;
- size = ntohs (amsg->header.size) - sizeof (struct GNUNET_ARM_Message);
- servicename = (const char *) &amsg[1];
- if ( (0 == size) ||
- (servicename[size - 1] != '\0') )
- {
- GNUNET_break (0);
- return GNUNET_SYSERR;
- }
+ GNUNET_MQ_check_zero_termination (amsg);
return GNUNET_OK;
}
check_stop (void *cls,
const struct GNUNET_ARM_Message *amsg)
{
- uint16_t size;
- const char *servicename;
-
(void) cls;
- size = ntohs (amsg->header.size) - sizeof (struct GNUNET_ARM_Message);
- servicename = (const char *) &amsg[1];
- if ( (0 == size) ||
- (servicename[size - 1] != '\0') )
- {
- GNUNET_break (0);
- return GNUNET_SYSERR;
- }
+ GNUNET_MQ_check_zero_termination (amsg);
return GNUNET_OK;
}
* Task triggered whenever we receive a SIGCHLD (child
* process died).
*
- * @param cls closure, NULL
+ * @param cls closure, NULL
*/
static void
maint_child_death (void *cls)
start_system = GNUNET_CONFIGURATION_get_value_yesno (cfg,
"ARM",
"START_SYSTEM_SERVICES");
- if ( (GNUNET_NO == start_user) &&
+ if ( (GNUNET_NO == start_user) &&
(GNUNET_NO == start_system) )
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,