Skip to content

Instantly share code, notes, and snippets.

@dnaeon
Created December 10, 2011 13:10
Show Gist options
  • Save dnaeon/1455128 to your computer and use it in GitHub Desktop.
Save dnaeon/1455128 to your computer and use it in GitHub Desktop.
pw_make/gr_make
pkgdb.c:1179:22: warning: implicit declaration of function 'pw_make' is invalid in C99 [-Wimplicit-function-declaration]
strlcpy(u->uidstr, pw_make(pwd), sizeof(u->uidstr));
^
pkgdb.c:1179:22: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *'
strlcpy(u->uidstr, pw_make(pwd), sizeof(u->uidstr));
^~~~~~~~~~~~
/usr/include/string.h:90:59: note: passing argument to parameter here
size_t strlcpy(char * __restrict, const char * __restrict, size_t);
^
pkgdb.c:1207:22: warning: implicit declaration of function 'gr_make' is invalid in C99 [-Wimplicit-function-declaration]
strlcpy(g->gidstr, gr_make(grp), sizeof(g->gidstr));
^
pkgdb.c:1207:22: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *'
strlcpy(g->gidstr, gr_make(grp), sizeof(g->gidstr));
^~~~~~~~~~~~
/usr/include/string.h:90:59: note: passing argument to parameter here
size_t strlcpy(char * __restrict, const char * __restrict, size_t);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment