Non mi è chiara questa linea:
main.c:13: warning: format '%s' expects type 'char *', but argument 2 has type 'int'

Per "argument 2" intende il secondo parametro passato alla funzione?