#160 Change linkage for cm_submit_u_from_file test in fromfile.c
Merged 3 years ago by rcritten. Opened 3 years ago by rcritten.
rcritten/certmonger fromfile  into  master

file modified
+1 -1
@@ -41,4 +41,4 @@ 

  

  fromfile_CFLAGS = $(AM_CFLAGS)

  fromfile_SOURCES = fromfile.c

- fromfile_LDADD = $(top_srcdir)/src/submit-u.c $(LDADD) $(UUID_LIBS)

+ fromfile_LDADD = $(LDADD) $(UUID_LIBS)

file modified
+5 -1
@@ -16,13 +16,17 @@ 

   */

  

  #include "../../src/config.h"

- #include "../../src/submit-h.h"

  

  #include <sys/types.h>

  #include <errno.h>

  #include <stdlib.h>

  #include <stdio.h>

  

+ #include <krb5.h>

+ 

+ #include "../../src/submit-u.h"

+ #include "../../src/submit-u.c"

+ 

  int

  main(int argc, char **argv)

  {

I tried some crazy linkage but it was segfaulting for no
apparent reason. Including the file directly fixes it and still
tests that \n is appended to read files and that is sufficient.

Pull-Request has been merged by rcritten

3 years ago