src/image.h:12:22: warning: macro replacement list should be enclosed in parentheses [misc-macro-parentheses]
src/misc.h:8:20: warning: all parameters should be named in a function [readability-named-parameter]
src/fs.h:7:6: warning: function 'preparevnstatdir' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
return ret;
}
-void preparevnstatdir(const char *file, const char *user, const char *group)
+void preparevnstatdir(const char *dir, const char *user, const char *group)
{
int len, i, lastslash=0;
char *path, *base;
- if (file == NULL) {
+ if (dir == NULL) {
return;
}
- len = strlen(file);
+ len = strlen(dir);
if (len<2) {
return;
}
- if (file[len-1] == '/') {
+ if (dir[len-1] == '/') {
return;
}
- path = strdup(file);
+ path = strdup(dir);
if (path == NULL) {
return;
}
}
free(path);
- path = strdup(file);
+ path = strdup(dir);
if (path == NULL) {
return;
}
#include <gdfontg.h> /* gdFontGetGiant() */
/* rectangle size */
-#define YBEGINOFFSET -1
+#define YBEGINOFFSET (-1)
#define YENDOFFSET 6
/* donut size */
int kerneltest(void);
int spacecheck(char *path);
-void sighandler(int);
+void sighandler(int sig);
uint64_t getbtime(void);
char *getvalue(uint64_t mb, uint64_t kb, int len, int type);
char *getrate(uint64_t mb, uint64_t kb, uint32_t interval, int len);