Skip to content

Commit

Permalink
Make test build.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaqx0r committed Oct 21, 2014
1 parent 921fa49 commit 0a75fc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ getent_data: testdirs
getent group > $(TESTDATA)/group.cache
sudo getent shadow > $(TESTDATA)/shadow.cache

last_pw_errno_test: test/last_pw_errno_test.c
$(CC) $(CFLAGS) -o $@ $^

testdirs:
mkdir -p $(TESTDATA)

Expand Down
2 changes: 1 addition & 1 deletion test/last_pw_errno_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <errno.h>
#include <stdio.h>

int main() {
int main(int argc, char **argv) {
setpwent();
for (;;) {
errno = 0;
Expand Down

0 comments on commit 0a75fc2

Please sign in to comment.