Skip to content

Commit

Permalink
Move old/cleanup.c into old/cleanup.h
Browse files Browse the repository at this point in the history
  • Loading branch information
acerv committed Nov 10, 2023
1 parent c99c6e4 commit 8b26f44
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/lapi/syscalls/gen-syscalls.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#include <errno.h>
#include <sys/syscall.h>
#include <asm/unistd.h>
#include "cleanup.c"
#include "cleanup.h"
#ifdef TST_TEST_H__
#define TST_SYSCALL_BRK__(NR, SNR) ({ \\
Expand Down
9 changes: 5 additions & 4 deletions include/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

subdir('lapi')

ltp_sources += files([
'old/cleanup.c'
])

compiler = meson.get_compiler('c')
config_data = configuration_data()

Expand Down Expand Up @@ -665,3 +661,8 @@ install_headers(
'tst_wallclock.h',
install_dir : 'include',
)

install_headers(
'old/cleanup.h',
install_dir : 'include/lapi'
)
4 changes: 2 additions & 2 deletions include/old/cleanup.c → include/old/cleanup.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
*
*/

#ifndef __CLEANUP_C__
#define __CLEANUP_C__
#ifndef __CLEANUP_H__
#define __CLEANUP_H__

/* Did the user define a cleanup function? */
#ifndef CLEANUP
Expand Down

0 comments on commit 8b26f44

Please sign in to comment.