style and comments for threadpool.c

This commit is contained in:
elvis
2022-05-07 23:00:47 +02:00
parent 0242635691
commit 8f37f4e6eb
5 changed files with 13 additions and 12 deletions

View File

@ -10,8 +10,8 @@
#include <unistd.h>
#include <errno.h>
#include <util.h>
#include <threadpool.h>
#include "util.h"
#include "threadpool.h"
/**
* @function void *threadpool_thread(void *threadpool)

View File

@ -2,7 +2,7 @@
#define _MESSAGE_H
/**
* tipo del messaggio
* message structure that get sent from the client
*/
typedef struct msg {
long len;

View File

@ -2,11 +2,12 @@
#ifndef _SERVER_UTIL
#define _SERVER_UTIL
#include <ini.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "ini.h"
#define CONFGETINT(var, config, t, q, p, base) \
var = (int) strtol(ini_get(config, t, q), p, base); \
if(var<=0) { \

View File

@ -12,7 +12,8 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
#include <string.h>
#include <strsep_gnu.h>
#include "strsep_gnu.h"
char *
strsep_gnu (char **stringp, const char *delim)

View File

@ -1,16 +1,16 @@
#ifndef _UTIL_H
#define _UTIL_H
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <pthread.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <pthread.h>
#include <errno.h>
#include <unistd.h>
#if !defined(BUFSIZE)
#define BUFSIZE 256
@ -62,8 +62,7 @@
}
/**
* \brief Procedura di utilita' per la stampa degli errori
*
* @brief Procedura di utilita' per la stampa degli errori
*/
static inline void print_error(const char * str, ...) {
const char err[]="ERROR: ";